Register / Login
Win a copy of
Re-engineering Legacy Software
this week in the
Docker in Action
Other JSE/JEE APIs
Jasper report export html file to servlet output stream, images path not found
Mitesh K Patel
posted 10 years ago
I hv used jasper report for reporting purpose. using
i want to display generated to servlet output stream in same browser.
When i compile .jasper, in servlet, it creates report html file with folder containing images of html file in the same folder as of jasper file.
But when i export the html file to servlet outputstream, path of 'px' and other images used in report is not found. only text is displayed.
It searchs path at the servlet directory instead of jasper file directory, since it is written to servlet output stream.
Can any one help me out. I just simply want to generate html report with images, from jasper file using servlet.
Jasper usage in J2EE
java html show img src is system path
context.xml + Help Needed
Jasper Report - PDF not get filled
HTML from jasper