Launching the Java viewer

Once you have created and initialized a Java viewer, call its processHttpRequest method to launch it in a web browser.

This example assumes that you have set up the viewer properly, and that you have valid request, response, and session objects.

To launch the Java viewer
  1. Call the processHttpRequest method to launch the viewer in the current browser window.

    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);

    Note:    If the viewer's content is going to be displayed more than once, using the getHtmlContent method is more efficient. This is because the request is processed only once and the resulting HTML string can be used multiple times.



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