Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Mitesh K Patel
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!