This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Jasper report export html file to servlet output stream, images path not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Jasper report export html file to servlet output stream, images path not found" Watch "Jasper report export html file to servlet output stream, images path not found" New topic
Author

Jasper report export html file to servlet output stream, images path not found

Mitesh K Patel
Greenhorn

Joined: Nov 24, 2005
Posts: 3
Hi,

I hv used jasper report for reporting purpose. using servlet 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.
 
 
subject: Jasper report export html file to servlet output stream, images path not found
 
It's not a secret anymore!