Jump to content
We've recently updated our Privacy Statement, available here ×

Error when viewing HTML report...


indhira

Recommended Posts

 

Hi all,

I am trying to generate a HTML report with images. I am using image servlet. It is opening fine in same browser, but if i try to open it in different browser am not getting the images. When i tried to view the source i found the following error:

javax.servlet.ServletException: No JasperPrint documents found on the HTTP session.
 net.sf.jasperreports.j2ee.servlets.ImageServlet.service(ImageServlet.java:97)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 

Any help appreciated.

Thanks and Regards,

Indhira Pannirselvam.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

As the error says, the image servlet expects the generated JasperPrint object on the session corresponding to the request.  This usually implies that the report generation and the report view happen in the same HTTP session.

How is the report filled and exported to HTML in your application?

Regards,

Lucian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...