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.rolapjavax.servlet,javax.servlet.jspjavax.xml.parsersjavax.xml.transformorg.w3c.domjava.lang,java.io,java.util
-
ClassesClassDescriptionHolds compiled stylesheets.Transforms a mondrian result into a DOM (Document Object Model).
Listenercreates and destroys aApplResourcesat the appropriate times in the servlet's life-cycle.AQueryTagcreates aResultCacheobject and initializes it with the MDX query.Holds a query/result pair in the user's session.ATransformTagrenders the result of aResultCacheobject.