tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morkeleb <>
Subject Accessing resource in WEB-INF outside servlet
Date Sun, 07 Nov 2004 15:50:37 GMT

I have a file in WEB-INF which I want to access.
However, this is done in a static class which is not a servlet,
so I do not have the servlet context.

Is there a way to access the servlet context non the less?
Is there a way to make getResource find the file anyway?

I know a resource is found when it's in /WEB-INF/classes,
but it is only in /WEB-INF/ and it is not an option to move
it to the classes directory.

Can you help me?
Thanx in Advance,
Lukas Österreicher

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message