tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: tomcat relative path in .jsp
Date Thu, 06 Nov 2003 19:13:02 GMT

What is the path used for?  Is it a link to another HTML/JSP/servlet, or
is it a destination for uploaded files?

If the former, use a relative link, e.g. ../upload.  If the latter, you
need an absolute path to a directory to which the server user has write
permissions.  You can use javax.servlet.context.tempdir or a directory
you configure via a context-param in web.xml.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Steve Harris []
>Sent: Thursday, November 06, 2003 1:47 PM
>Subject: tomcat relative path in .jsp
>I'm managing a tomcat application server that has an application with a
>.jsp that has the path hard coded, e.g. ;
>The path is used to upload files to.  I'd like to recommend to the
>developer a change that could be made to make this path relative rather
>than absolute  - any ideas ?
>Cheers - Steve
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message