
Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
> Try instead..
> URL url = getServletContext().getResource("/WEB-INF/lib/data.xml");
Aha :-) that worked beautifully. Thankyou very much. I even found
the getResourceAsStream() method while I was there which suits the
problem better.
> Note well: It is extremely dangerous
> to allow things to be drawn straight
> out of WEB-INF for display,
Why is that?
> you should
> only allow it for resources that you
> specifically identify.
So would the WEB-INF be an appropriate location to store an xml file
that contained site content (which was to be modified using xsl). Or
are you saying that these type of files should be stored independantly
of the servlet and that the lib should only be used for data that the
servlet was dependant on for its execution
Andy
> HTH
Andrew Thompson - 18 May 2004 06:49 GMT
>> Note well: It is extremely dangerous
>> to allow things to be drawn straight
>> out of WEB-INF for display,
>
> Why is that?
Dangreous only in terms of security..
Would you want your visitors to be able to casually display..
http://my.com/display/WEB_INF/classes/security/PassWords.java ?
;-)

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology