[appengine-java] Re: including data file in JAR

2010-04-20 Thread Philip Tucker
That worked, thanks. On Apr 18, 11:55 pm, Vaclav Bartacek vaclav.barta...@spolecne.cz wrote: Better way is to use  getClass().getResourceAsStream for accessing files packed in jars or for acccessing files located directly in the war you can use the following (in a servlet):    

[appengine-java] Re: including data file in JAR

2010-04-19 Thread Vaclav Bartacek
Better way is to use getClass().getResourceAsStream for accessing files packed in jars or for acccessing files located directly in the war you can use the following (in a servlet): ServletContext ctx = getServletContext(); InputStream is = ctx.getResourceAsStream( resourceName ); Do not