Appendix D: Configuring Style Intelligence for JSP Tags
The following sections describe an approach to integration that relies on the JSP tag library for a J2EE environment. In general, this is not as flexible as the approach based on IFrames described in Integrating the Web User Interface. Some of the major differences between the approaches are as follows:
Use the IFrame approach whenever possible.
• The JSP tag approach can only be used to embed reports, not Viewsheets.
• The JSP tag approach provides no ad hoc editing capabilities.
• The JSP tag approach requires greater technical expertise.
• The JSP tag approach permits greater control over placement of components on the page.
To start using the Style Intelligence JSP tags, you must place bisuite.jar and etools.jar in the WEB-INF/lib directory of your web application. Include the tag library definition in your web application descriptor, web.xml, which is located in the WEB-INF directory of your web application. Simply add the following XML content to the file:
<taglib>
<taglib-uri>sree.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/bisuite.jar
</taglib-location>
</taglib>
For Style Report EE, specify sree.jar in place of bisuite.jar for all occurrences.
If your repository directory is a directory other than the WEB-INF/classes directory, you will need to include an initialization parameter as well:
<context-param>
<param-name>sree.home</param-name>
<param-value>/path/to/your/repository/directory</param-value>
</context-param>
The value of this parameter is the same as the one you would use to set up the Servlet Repository.
In certain application servers, it is impossible to serve binary data through a JSP. The resources will fail to load and an exception will appear. To avoid this, a servlet, inetsoft.sree.web.jsp.ResourceServlet, is provided to serve binary resources. If you encounter this problem, register the servlet and specify the servlet's URI in the resourceUri attribute of the sree:create tag.
No additional configuration is needed in your web application. You are now ready to start writing JSP pages.
| << C.14 Pinging the Report Server | © 1996-2013 InetSoft Technology Corporation (v11.4) | D.1 Tag Library Import >> |