If your JSP page contains only the viewer and nothing else, several things can be done to simplify the report viewing implementation.
The viewer is capable of generating complete HTML pages and can set the appropriate page properties depending on the viewing context. Setting setOwnPage to true provides several benefits, by allowing the viewer to completely handle the surrounding HTML content. Allowing the viewer to handle the surrounding HTML content reduces the amount of code you need to add to your JSP page and allows the viewer to automatically determine certain settings:
For example, it writes out the <html>
start tag for web browsers and <wml>
start tag for mobile devices.
Note: The Java Reporting Component does not support generating reports for display on mobile devices.
If setOwnPage is false, the surrounding HTML tags and content
When setOwnPage is set to true, you must use the processHttpRequest method to display the report instead of the getHtmlContent method. The processHttpRequest method must be used because using getHtmlContent has the same effect as setting setOwnPage to false, negating any of the benefits gained from setting setOwnPage to true.
Business Objects http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |