Using the setOwnForm method

If your JSP page does not contain any controls that require post back, you should set the setOwnForm method to true. Doing so, allows the viewer to handle the view state information automatically. The view state is used to perform client-side caching of information about the current state of the report. If you have other controls on the page, you must setOwnForm is set to false and handle the view state information manually.

The following example shows how to set the view state information manually:

viewer.setOwnForm(false); 
viewer.setViewState((String) session.getValue("viewState"));
viewer.processHttpRequest(request, response, getServletContext(), 
pageContext.getOut()); 
session.putValue("viewState", viewer.getViewState());


Crystal Decisions
http://www.crystaldecisions.com/
Support services
http://support.crystaldecisions.com/