You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by aps olute <ap...@yahoo.com> on 2002/12/12 04:13:34 UTC

Property files located under WEB-INF/

 Wanted to know if WEB-INF/ and below is restricted to which class? I have seen
it mentioned before but I am unclear as to which class this restriction
applies. Put another way, if I have several servlets under this context, only
those servlets have access to WEB-INF/ dir and subdirs? If any of these
servlets have support classes and these support classes are located in this
WEB-INF/ or subdirs(via packages) and requires a properties file, and these
properties are also located in this directories, NO WAY in hell these support
classes can ever access those properties file?
  Where can those support classes need to be so the servlets using them have
access with proviso the support have access to the properties files? I spent a
week trying to figure this out myself and can not get it resolve. TIA.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Property files located under WEB-INF/

Posted by Jacob Kjome <ho...@visi.com>.
If your support package require access to properties files, how did you 
expect to load them outside a servlet container?  That's easy, via the in 
InputStream from the classloader....

Here are a number of ways to load properties classes that I posted to the 
list week or so ago....

http://marc.theaimsgroup.com/?l=tomcat-user&m=103904964313189&w=2


Jake

At 07:13 PM 12/11/2002 -0800, you wrote:

>  Wanted to know if WEB-INF/ and below is restricted to which class? I 
> have seen
>it mentioned before but I am unclear as to which class this restriction
>applies. Put another way, if I have several servlets under this context, only
>those servlets have access to WEB-INF/ dir and subdirs? If any of these
>servlets have support classes and these support classes are located in this
>WEB-INF/ or subdirs(via packages) and requires a properties file, and these
>properties are also located in this directories, NO WAY in hell these support
>classes can ever access those properties file?
>   Where can those support classes need to be so the servlets using them have
>access with proviso the support have access to the properties files? I spent a
>week trying to figure this out myself and can not get it resolve. TIA.
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>