This content has been marked as final.
Show 1 reply
-
1. Re: How to read an xml file in WEB-INF ?
roberto Nov 19, 2002 9:19 AM (in response to tsdconcept)i just do it using: (in init method)
getServletConfig().getServletContext().getResourceAsStream("/WEB-INF/MyXml.xml");
this works for me using JBOSS 3.x WebLogic 6.x / 7.x and WebSphere 4.x
I use getResourceAsStream .. but i think getResource works too.
Bye