Poor people's general OLAP Solutions Iii--jpivot presentation layer

Source: Internet
Author: User
Tags query xsl xslt

JPivot is the taglib of Mondrian's performance layer and has maintained good development progress. has been a long time no use, while completely forget before, the small experience to write down.

1. Chinese 1.1 Find all resources.properties files, Han to resources_zh.properties file 1.2 native2ascii resources_zh.properties Resources_ Zh.properties 1.3 To find all the XML files under Web-inf/jpivot, Han into Xxx_zh.xml

2. The architecture JPivot architecture looks different, but in fact it is a shrewd choice. 2.1 Rendering OLAP reports using xml/xslt jpivot use WCF (Web Component Framework) to render Web UI components based on XML/XSLT. This makes it look very different. However, an OLAP report is a very complex but rule-based thing that is best used for rendering with XSLT. While programmers and editors don't like this kind of Lisp in Martin Flower's mouth, transform Engine can actually compare template Engine (Velocity,freemarker)     More efficient processing of OLAP reports and the display of their navigation systems. 2.2 Entirely based on Jsp+taglib jpivot Another possible place to be used is that it is based entirely on TagLib rather than the familiar MVC pattern. But if not based on Tablib, any MVC framework would make it less versatile, mondrain the only performance layer, and MVC does not necessarily need those frameworks (later) 2.3 Typical processes and patterns:

Open JPivot's own sample, view the index.jsp file, the typical process is as follows:

1, the user issued a Testpage.jsp?query=modrain request 2,testpage.jsp on the <wcf:include> according to query parameters, matching/web-inf/query/ Modrain.jsp to get the data.

3,modrain.jsp <jp:mondrianquery id= "query01" > Query data, put into the QUERY01 variable

<jp:table id= "table01" query= "#{query01}" on 4,testpage.jsp the data needed to display OLAP tables (display data) based on/> results (field data)

5,testpage.jsp on the <wcf:render ref= "table01" xsluri= "/web-inf/jpivot/table/mdxtable.xsl"/>, based on the results of the TABLE01, use XSL, Renders an OLAP table.

6, Cycle 4th, 5 steps, use <jp:navigator> tag to prepare Navigator,chart data and then use <wcf> render chart and navigation system.

Throughout the process, the 2nd Step testpage acts as the model layer for controller to invoke the 3rd step, and then 4th, 5 steps to execute the transform engine two-step rendering mode of Martin flower----first from domain data (such as some Java beans) To convert a neatly formatted, data that needs to be displayed (such as a section of XML), and then render it in the final form with XSL.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.