Package mondrian.web.taglib
package mondrian.web.taglib
Provides a tag library for embedding MDX queries in JSP pages.
Revision | $Id$ |
---|---|
Copyright | Copyright (C) 2002-2005 Julian Hyde Copyright (C) 2005-2007 Pentaho and others |
Author | Julian Hyde |
Tags
QueryTag
and TransformTag
.
Example
<%@ page language="java" %> <%@ taglib uri="/WEB-INF/mdxtable.tld" prefix="mdx" %> <mdx:query name="query1" resultCache="true"> select {[Measures].[Unit Sales], [Measures].[Store Cost]} on columns, CrossJoin( { [Promotion Media].[All Promotion Media].[Radio], [Promotion Media].[All Promotion Media].[TV], [Promotion Media].[All Promotion Media].[Sunday Paper], [Promotion Media].[All Promotion Media].[Street Handout] }, [Product].[All Products].[Drink].children) on rows from Sales where ([Time].[1997]) </mdx:query> The current slicer is <strong> <mdx:transform query="query1" xsltURI="/WEB-INF/mdxslicer.xsl" xsltCache="true"/> </strong>. <p> <mdx:transform query="query1" xsltURI="/WEB-INF/mdxtable.xsl" xsltCache="false"/> </p>
Known Issues
Dependencies
This package is dependent upon the following other packages:
mondrian.olap
, but NOTmondrian.rolap
javax.servlet
,javax.servlet.jsp
javax.xml.parsers
javax.xml.transform
org.w3c.dom
java.lang
,java.io
,java.util
-
ClassDescriptionHolds compiled stylesheets.Transforms a mondrian result into a DOM (Document Object Model).
Listener
creates and destroys aApplResources
at the appropriate times in the servlet's life-cycle.AQueryTag
creates aResultCache
object and initializes it with the MDX query.Holds a query/result pair in the user's session.ATransformTag
renders the result of aResultCache
object.