Try
InputStream inStream =
this.getClass().getClassLoader().getResourceAsStream("file");
you can try this too
Thread.currentTread().getContextClassLoader().getResourceAsStream("file");
-Deepal
Upul
On Tue, Mar 11, 2008 at 6:32 PM, Moley Harey <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi,
Is it possible to load text or image files placed under
WEB-INF/classes directory?
If those files are in the classes folder then they are supposed to
be in the application classpath
and then there is a method to retrieve them so is not necessary to
specify the full path to the file?
Thanks in advance!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Para atras, solo para tomar impulso!
http://chromewaves.blogspot.com/
--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]