hello,
i'm sorry asking here that kind of question, but i do not know where to
ask it.
my question is : how to load a ressurce (in my case a velocity file)
from a jar file in the WEB-INF/lib/ ?
my boss wants the webapp to be as static as possible so i plan to
generate it with velocity. but in a short time we will upload some
infos to a servlet that creates dynamically some static pages that
tomcat will serves in the same /myapp/servlet/myapp.
here is what i try now but it makes NullPointerException
InputStream toto =
this.getClass().getClassLoader().getSystemResourceAsStream("file:/Toto.vm");
Log.debug("toto : " + toto.toString());
in advance thanks
R
=====
------------------------------------
| Rapha�l Pi�roni |
| 33+ 223 351 354 |
| mailto:[EMAIL PROTECTED] |
| http://www.dexem.com |
| mailing:[EMAIL PROTECTED] |
------------------------------------
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>