JSP Tags for Embedding Reports

A report can be embedded in a Java Server Page (JSP) by using the custom tag library provided with this software. This integration approach provides maximum flexibility with minimal configuration.

demo
Read how InetSoft saves money and resources with deployment flexibility.

Configuring Style Intelligence for JSP Tags

To start using the Style Intelligence JSP tags, you have to place bisuite_pro.jar and etools.jar in the WEB-INF/lib directory of your web application. Then you will need to 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_pro.jar
 </taglib-location>
 </taglib>

If your registry 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/registry/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.

Tag Library Import

In order to use Style Intelligence tags in a JSP page, you need to import the tag library. This is done by using a JSP taglib directive:

 <%@taglib uri="sree.tld" prefix="sree"%>

This tells the JSP that all tags that start with “<sree:” refer to the tag library defined in the web.xml file with the URI of sree.tld. The prefix is an XML namespace prefix. This means that any tag included in the page needs to be prefixed with “sree:”. This prevents naming collisions if another tag library has a tag of the same name.

Cache Tag

The first tag that must be included in the JSP is the “cache” tag. Use the cache tag when you have multiple reports on the same JSP page, and want to refresh one report without regenerating the others (i.e., the others should be displayed from the cache). The cache tag has a single required attribute, jspId, which needs to be unique for the whole web application. This means that no JSPs may have a cache tag with the same jspId. There is one cache tag for the entire JSP page.

<sree:cache jspId="reportJSP"/>

More Articles About Embedding Reports

Air Quality Dashboard Example - Air quality management and monitoring have become critical. Air quality dashboards, which provide data and insights on the condition of our atmosphere in real time, have become very useful tools with the emergence of smart technology. This article explores the complex world of analytics and Key Performance Indicators (KPIs) used on air quality dashboards, providing insight into the measures and metrics that inspire decisions for a healthier, cleaner atmosphere...

How to Create a Funnel Chart in Google Sheets - Creating a Funnel Chart in Google Sheets is cumbersome, because Google Sheets does not natively support this chart type. Instead, hacks must be used to force a regular horizontal bar chart to approximate the appearance of a Funnel Chart. If using aggregated data, the data should be configured as follows. Note that the two "dummy" columns need to be used as padding to center the actual sales channel data, otherwise the chart will not have the appearance of a funnel. Once the data is prepared, add a Chart from the Insert menu, and use the Chart Editor to choose the Bar chart type, and set Stacking to 100%...

Learning Objective for Visualization Tools - Visualization tools can be highly educational when being used in the workplace. No matter who is using these visualization tools (CEO's, Managers, Employee), the ability to create different types of visual representations teaches them the different ways in which to represent certain data. All data is different, and it needs to be represented accordingly. Working with visualization tools will enhance how you present your data in the future. The main purpose of visualization tools describe and analyze trends. Once the data is stored in the graph and it is created, a simple review of what the graph looks like can reveal hidden patterns in your companies business that you may never have known existed...

Looking for Good BI Applications - Are you looking for a good BI application? InetSoft has been a leading BI software provider since 1996 and has over 5,000 customers around the world. Recently Gartner ranked InetSoft number 1 in collaboration and OLAP capabilities. Our fast BI application offers easy-to-deploy, easy-to-use monitoring and reporting software. We help our clients manage large amounts of data to process into quick solutions. Basic dashboards can be deployed in just minutes; dashboard solutions in just hours; entire business intelligence solutions, including data preparation, in a matter of weeks. Style Intelligence provides an integrated...

Water Treatment Plant Analytics - In order to guarantee that populations get clean, safe water, water treatment facilities are essential. These facilities use analytics and key performance indicators (KPIs) on their dashboards to monitor, optimize, and enhance their operations as technology develops. This article discusses water treatment plant dashboard KPIs and analytics, highlighting efficiency and reliability tools. A collection of KPIs for tracking water quality are the fundamental components of any dashboard in a water treatment facility. To make sure the water satisfies regulatory requirements, parameters including turbidity, pH levels, dissolved oxygen, and chemical concentrations are essential. Plant operators can quickly spot abnormalities and take remedial action to ensure water quality when these parameters are monitored in real-time...

Who Is Using Predictive Analytics - We are very well aware of the fact that data analytics help businesses of every shape & size. But before you integrate its use for the betterment of your business, it is important to learn about the use of predictive analytics for the various sectors. Retail - Earlier there would be notorious studies displaying the fact that the same men who purchase diapers also purchase beer simultaneously. Such confusing data is no longer a problem as now we can benefit from the use of analytics in retail industry. For example, online vendors these days use Google analytics on websites for determining the offers that are apt for their customers, assessing the success of the promotional events, etc. Retailers are also using analytics for price optimization & merchandize planning. It is also possible to realize the ROI percentage derived with the proper use of analytics...

Previous: IFrame Integration Example