Symptom: The parameters on a URL (in IE address field) were lost after performing crystal report toolbar functions such as refreshing/zooming/exporting, causing the following error message on the JSP page: org.apache.jasper.JasperException
The report was opened without any problem. However, if I click a crystal report viewers toolbar button, say, refresh page, the URL in the IEs address field will become http://localhost:8080/viewReport.jsp, which truncates the report file name and parameters. Of cause it causes an exception, since the crystal report requires the report file name and parameter set.
I believe there must be a way around to make the CR viewer work in my situation. Could anyone here tell me how to do it?
One possible solution would be to separate out your parameter gathering step from the report display step as follows:
Make a parameter-collect jsp page (using url rewriting or whatever) and store the collected info in a bean. After storage of the bean (using request.setAttribute("reportbean", reportBean) redirect (response.sendRedirect("display.jsp") to the display page.
Make a display page that retrieves the bean (request.getAttribute("reportbean") and uses the parametes in the bean to launch the viewer.