Howto save / load file on a servlet with war archive
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, October 25, 2011 06:04 AM

I read a lot of threads about this issue, but never got an appropriate solution.



I try to generate a PDF on a servlet using JasperReports. To generate dynamically the PDF there is a need to store a .jasper file (binary!!) on the server and to load it into a class called PDFExporter. But I don't have access to the file system on the server inside the war archive.



There are some approaches using getContext().getRealPath() and getResource() that all don't work for me cause those methods return null.



Does anybody know a better solution.



Thx in advance Jimmy

About | Sitemap | Contact