Howdy,
You got it.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Timothy Stone [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 13, 2003 12:56 PM
>To: Tomcat Users List
>Subject: Re: getResourceAsStream and relative paths in web.xml
>
>> 1. Certainly, using a FileXXX class will attempt to interpret the
init
>> parameter value (/WEB-INF...) is an absolute path, because that's how
>> absolute paths are defined for files.
>
>Thank you again Yoav. The recommendation then is to skip trying to use
a
>FileInputStream (because the String provided is absolute to the file
>system not servlet context, i.e. /WEB-INF/lib/x.props is intepreted as
>from "root" on *NIX and C:\ on Windoze). Additionally
>
>config.getServletContext().getResourceAsStream( file )
>
>works in and out of war packages.
>
>Thank you again,
>Tim
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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