Hi,
Remember, getRealPath doesn't work in a packed WAR file.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: stan [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 26, 2004 9:43 AM
>To: Tomcat Users List
>Subject: Re: How can I Know the servlet root directory for documents and
>modify it?
>
>In a servlet, you can use
>getServletContext().getRealPath("/") to get the root of the web's docBase
>----- Original Message -----
>From: "Francisco José Arnau Vives" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, May 26, 2004 9:21 PM
>Subject: How can I Know the servlet root directory for documents and modify
>it?
>
>
>> In a message I said my problem into migrate a application from windows to
>a
>> linux server. I think the problem is about the root directory where the
>> servlets try to find the files. How can I know the dafault route for my
>> application and how can I modify it?
>> Thanks
>>



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to