Hi.

I want to make a static class which access a configuration file in /WEB-INF/.
I tried <Classname>.class.getResourceAsStream("/WEB-INF/config-file.xml"); but it wont 
work.
So I thought I have to do it by using getServletConfig().getServletContext( 
).getResourceAsStream("/WEB-INF/config-file.xml")
but I did not figure out how to do that because getServletCofig only works in 
Servlets, not in static beans.

Can you help me?

Thanx in Advance,
Lukas




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to