You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bu...@apache.org on 2009/12/20 21:47:22 UTC

svn commit: r892658 [2/3] - in /ofbiz/trunk/framework: birt/webapp/ birt/webapp/birt/ birt/webapp/birt/WEB-INF/ birt/webapp/birt/WEB-INF/attachments/ birt/webapp/birt/birt/ birt/webapp/birt/error/ birt/webapp/birt/report/ example/ example/webapp/birt/ ...

Added: ofbiz/trunk/framework/birt/webapp/birt/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/birt/webapp/birt/WEB-INF/web.xml?rev=892658&view=auto
==============================================================================
--- ofbiz/trunk/framework/birt/webapp/birt/WEB-INF/web.xml (added)
+++ ofbiz/trunk/framework/birt/webapp/birt/WEB-INF/web.xml Sun Dec 20 20:47:20 2009
@@ -0,0 +1,297 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<web-app>
+    <display-name>Open For Business - BIRT Component</display-name>
+    <description>BIRT Component of the Open For Business Project</description>
+    
+    <context-param>
+        <param-name>webSiteId</param-name>
+        <param-value>BIRT</param-value>
+        <description>A unique ID used to look up the WebSite entity</description>
+    </context-param>
+    <context-param>
+        <param-name>localDispatcherName</param-name><param-value>birt</param-value>
+        <description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description>
+    </context-param>    
+    <context-param>
+        <param-name>entityDelegatorName</param-name><param-value>default</param-value>
+        <description>The Name of the Entity Delegator to use, defined in entityengine.xml</description>
+    </context-param>
+    <context-param>
+        <param-name>mainDecoratorLocation</param-name>
+        <param-value>component://birt/widget/CommonScreens.xml</param-value>
+        <description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description>
+    </context-param>
+    <context-param>
+        <param-name>widgetVerbose</param-name>
+        <param-value>false</param-value>
+        <description>Enable widget boundary comments. See org.ofbiz.widget.ModelWidget.widgetBoundaryCommentsEnabled().</description>
+    </context-param>
+    <context-param>
+        <param-name>compressHTML</param-name>
+        <param-value>false</param-value>
+        <description>Remove unnecessary whitespace from HTML output.</description>
+    </context-param>
+    
+    <!-- Default locale setting.-->
+    <context-param>
+        <param-name>BIRT_VIEWER_LOCALE</param-name>
+        <param-value>en-US</param-value>
+    </context-param>
+    
+    <!-- 
+        Default timezone setting.
+        Examples: "Europe/Paris", "GMT+1".
+        Defaults to the container's timezone.       
+     -->
+    <context-param>
+        <param-name>BIRT_VIEWER_TIMEZONE</param-name>
+        <param-value></param-value>
+    </context-param>
+    
+    <!--
+        Report resources directory for preview. Defaults to ${birt home}
+    -->
+    <context-param>
+        <param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
+        <param-value>${ofbiz.home}/runtime/tempfiles</param-value>
+    </context-param>
+    
+    <!--
+        Temporary document files directory. Defaults to ${birt home}/documents
+    -->
+    <context-param>
+        <param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
+        <param-value>${ofbiz.home}/runtime/tempfiles/documents</param-value>
+    </context-param>
+    
+    <!--
+        Flag whether the report resources can only be accessed under the
+        working folder. Defaults to true
+    -->
+    <context-param>
+        <param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
+        <param-value>true</param-value>
+    </context-param>
+    
+    <!--
+        Temporary image/chart directory. Defaults to ${birt home}/report/images
+    -->
+    <context-param>
+        <param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
+        <param-value>${ofbiz.home}/runtime/tempfiles/images</param-value>
+    </context-param>
+    
+    <!-- Engine log directory. Defaults to ${birt home}/logs -->
+    <context-param>
+        <param-name>BIRT_VIEWER_LOG_DIR</param-name>
+        <param-value>${ofbiz.home}/runtime/logs</param-value>
+    </context-param>
+    
+    <!-- Report engine log level -->
+    <context-param>
+        <param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
+        <param-value>WARNING</param-value>
+    </context-param>
+    
+    <!--
+        Directory where to store all the birt report script libraries (JARs).
+        Defaults to ${birt home}/scriptlib
+    -->
+    <context-param>
+        <param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
+        <param-value>${ofbiz.home}/framework/birt/lib/scriptlib</param-value>
+    </context-param>
+    
+    <!-- Resource location directory. Defaults to ${birt home} -->
+    <context-param>
+        <param-name>BIRT_RESOURCE_PATH</param-name>
+        <param-value>${ofbiz.home}/runtime/tempfiles</param-value>
+    </context-param>
+    
+    <!-- Preview report rows limit. An empty value means no limit. -->
+    <context-param>
+        <param-name>BIRT_VIEWER_MAX_ROWS</param-name>
+        <param-value></param-value>
+    </context-param>
+    
+    <!--
+        Max cube fetch levels limit for report preview (Only used when
+        previewing a report design file using the preview pattern)
+    -->
+    <context-param>
+        <param-name>BIRT_VIEWER_MAX_CUBE_ROWLEVELS</param-name>
+        <param-value></param-value>
+    </context-param>
+    <context-param>
+        <param-name>BIRT_VIEWER_MAX_CUBE_COLUMNLEVELS</param-name>
+        <param-value></param-value>
+    </context-param>
+
+    <!-- Memory size in MB for creating a cube. -->
+    <context-param>
+        <param-name>BIRT_VIEWER_CUBE_MEMORY_SIZE</param-name>
+        <param-value></param-value>
+    </context-param>
+
+    <!-- Defines the BIRT viewer configuration file -->
+    <context-param>
+        <param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
+        <param-value>WEB-INF/viewer.properties</param-value>
+    </context-param>
+
+    <!--
+        Flag whether to allow server-side printing. Possible values are "ON"
+        and "OFF". Defaults to "ON".
+    -->
+    <context-param>
+        <param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
+        <param-value>ON</param-value>
+    </context-param>
+
+    <!--
+        Flag whether to force browser-optimized HTML output. Defaults to true
+    -->
+    <context-param>
+        <param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+    <!--
+        Filename generator class/factory to use for the exported reports.
+    -->
+    <context-param>
+        <param-name>BIRT_FILENAME_GENERATOR_CLASS</param-name>
+        <param-value>org.eclipse.birt.report.utility.filename.DefaultFilenameGenerator</param-value>
+    </context-param>
+    
+    <filter>
+        <filter-name>ContextFilter</filter-name>
+        <display-name>ContextFilter</display-name>
+        <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class>
+        <init-param><param-name>disableContextSecurity</param-name><param-value>N</param-value></init-param>
+        <init-param>
+            <param-name>allowedPaths</param-name>
+            <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css:/frameset:/run:/preview:/download:/parameter:/document:/output:/extract:/webcontent:/CancelTask.jsp</param-value>
+        </init-param>
+        <init-param><param-name>errorCode</param-name><param-value>403</param-value></init-param>
+        <init-param><param-name>redirectPath</param-name><param-value>/control/main</param-value></init-param>        
+    </filter>
+    <!--
+        Viewer Filter used to set the request character encoding to UTF-8.
+    -->
+    <filter>
+        <filter-name>ViewerFilter</filter-name>
+        <filter-class>org.eclipse.birt.report.filter.ViewerFilter</filter-class>
+    </filter>
+    
+    <filter-mapping><filter-name>ContextFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping>
+    <filter-mapping>
+        <filter-name>ViewerFilter</filter-name>
+        <servlet-name>ViewerServlet</servlet-name>
+    </filter-mapping>
+    <filter-mapping>
+        <filter-name>ViewerFilter</filter-name>
+        <servlet-name>EngineServlet</servlet-name>
+    </filter-mapping> 
+
+    <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
+    <listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
+    <!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface -->
+    <!-- <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> -->
+
+    <!-- Viewer HttpSession Listener -->
+    <listener>
+        <listener-class>org.eclipse.birt.report.listener.ViewerHttpSessionListener</listener-class>
+    </listener>
+  
+    <servlet>
+        <servlet-name>ControlServlet</servlet-name>
+        <display-name>ControlServlet</display-name>
+        <description>Main Control Servlet</description>
+        <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <!-- Viewer Servlet, Supports SOAP -->
+    <!--
+    <servlet>
+        <servlet-name>ViewerServlet</servlet-name>
+        <servlet-class>org.ofbiz.birt.report.servlet.BirtViewerServlet</servlet-class>
+    </servlet>
+    -->
+    <!-- Engine Servlet -->
+    <servlet>
+        <servlet-name>EngineServlet</servlet-name>
+        <servlet-class>org.ofbiz.birt.report.servlet.BirtEngineServlet</servlet-class>
+    </servlet>
+    <servlet-mapping><servlet-name>ControlServlet</servlet-name><url-pattern>/control/*</url-pattern></servlet-mapping>
+    
+    <!--
+    <servlet-mapping>
+        <servlet-name>ViewerServlet</servlet-name>
+        <url-pattern>/frameset</url-pattern>
+    </servlet-mapping>
+    
+    <servlet-mapping>
+        <servlet-name>ViewerServlet</servlet-name>
+        <url-pattern>/run</url-pattern>
+    </servlet-mapping>
+    -->
+    
+    <servlet-mapping>
+        <servlet-name>EngineServlet</servlet-name>
+        <url-pattern>/preview</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>EngineServlet</servlet-name>
+        <url-pattern>/download</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>EngineServlet</servlet-name>
+        <url-pattern>/parameter</url-pattern>
+    </servlet-mapping>  
+
+    <servlet-mapping>
+        <servlet-name>EngineServlet</servlet-name>
+        <url-pattern>/document</url-pattern>
+    </servlet-mapping>  
+
+    <servlet-mapping>
+        <servlet-name>EngineServlet</servlet-name>
+        <url-pattern>/output</url-pattern>
+    </servlet-mapping>  
+    
+    <servlet-mapping>
+        <servlet-name>EngineServlet</servlet-name>
+        <url-pattern>/extract</url-pattern>
+    </servlet-mapping>
+
+    <session-config><session-timeout>60</session-timeout><!-- in minutes --></session-config>
+
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+        <welcome-file>index.html</welcome-file>
+        <welcome-file>index.htm</welcome-file>
+    </welcome-file-list>
+</web-app>

Added: ofbiz/trunk/framework/birt/webapp/birt/birt/report.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/birt/webapp/birt/birt/report.ftl?rev=892658&view=auto
==============================================================================
--- ofbiz/trunk/framework/birt/webapp/birt/birt/report.ftl (added)
+++ ofbiz/trunk/framework/birt/webapp/birt/birt/report.ftl Sun Dec 20 20:47:20 2009
@@ -0,0 +1,30 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<#assign birt = JspTaglibs["/WEB-INF/birt.tld"]/>
+
+<@birt.report id="birtReport"
+    reportDesign="component://birt/webapp/birt/report/product.rptdesign"
+    baseURL="/birt"
+    height="700"
+    width="900"
+    format="html"
+    isHostPage="false"
+    pageNum="2">
+</...@birt.report>
\ No newline at end of file

Added: ofbiz/trunk/framework/birt/webapp/birt/error/error.jsp
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/birt/webapp/birt/error/error.jsp?rev=892658&view=auto
==============================================================================
--- ofbiz/trunk/framework/birt/webapp/birt/error/error.jsp (added)
+++ ofbiz/trunk/framework/birt/webapp/birt/error/error.jsp Sun Dec 20 20:47:20 2009
@@ -0,0 +1,52 @@
+<%--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+--%>
+<%@ page import="org.ofbiz.base.util.*" %>
+<html>
+<head>
+<title>Open For Business Message</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+</head>
+
+<% String errorMsg = (String) request.getAttribute("_ERROR_MESSAGE_"); %>
+
+<body bgcolor="#FFFFFF">
+<div align="center">
+  <br/>
+  <table width="100%" border="1" height="200">
+    <tr>
+      <td>
+        <table width="100%" border="0" height="200">
+          <tr bgcolor="#CC6666"> 
+            <td height="45"> 
+              <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" color="#FFFFFF"><b>:ERROR MESSAGE:</b></font></div>
+            </td>
+          </tr>
+          <tr> 
+            <td>
+              <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><%=UtilFormatOut.replaceString(errorMsg, "\n", "<br/>")%></font></div>
+            </td>
+          </tr>
+        </table>
+      </td>
+    </tr>
+  </table>
+</div>
+<div align="center"></div>
+</body>
+</html>

Added: ofbiz/trunk/framework/birt/webapp/birt/index.jsp
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/birt/webapp/birt/index.jsp?rev=892658&view=auto
==============================================================================
--- ofbiz/trunk/framework/birt/webapp/birt/index.jsp (added)
+++ ofbiz/trunk/framework/birt/webapp/birt/index.jsp Sun Dec 20 20:47:20 2009
@@ -0,0 +1,19 @@
+<%--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+--%>
+<%response.sendRedirect("control/main");%>

Added: ofbiz/trunk/framework/birt/webapp/birt/report/product.rptdesign
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/birt/webapp/birt/report/product.rptdesign?rev=892658&view=auto
==============================================================================
--- ofbiz/trunk/framework/birt/webapp/birt/report/product.rptdesign (added)
+++ ofbiz/trunk/framework/birt/webapp/birt/report/product.rptdesign Sun Dec 20 20:47:20 2009
@@ -0,0 +1,212 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20" id="1">
+    <property name="createdBy">Eclipse BIRT Designer Version 2.5.1.v20090903 Build &lt;2.5.1.v20090917-1447></property>
+    <property name="units">in</property>
+    <method name="initialize"><![CDATA[importPackage(Packages.org.ofbiz.base.util)
+
+module = "product.rptdesign";]]></method>
+    <property name="iconFile">/templates/blank_report.gif</property>
+    <property name="bidiLayoutOrientation">ltr</property>
+    <data-sources>
+        <script-data-source name="OFBiz" id="8"/>
+    </data-sources>
+    <data-sets>
+        <script-data-set name="Product" id="9">
+            <list-property name="resultSetHints">
+                <structure>
+                    <property name="position">0</property>
+                    <property name="name">productId</property>
+                    <property name="dataType">string</property>
+                </structure>
+                <structure>
+                    <property name="position">1</property>
+                    <property name="name">productTypeId</property>
+                    <property name="dataType">string</property>
+                </structure>
+                <structure>
+                    <property name="position">2</property>
+                    <property name="name">internalName</property>
+                    <property name="dataType">string</property>
+                </structure>
+            </list-property>
+            <list-property name="columnHints">
+                <structure>
+                    <property name="columnName">productId</property>
+                    <text-property name="displayName">productId</text-property>
+                </structure>
+                <structure>
+                    <property name="columnName">productTypeId</property>
+                    <text-property name="displayName">productTypeId</text-property>
+                </structure>
+                <structure>
+                    <property name="columnName">internalName</property>
+                    <text-property name="displayName">internalName</text-property>
+                </structure>
+            </list-property>
+            <structure name="cachedMetaData">
+                <list-property name="resultSet">
+                    <structure>
+                        <property name="position">1</property>
+                        <property name="name">productId</property>
+                        <property name="dataType">string</property>
+                    </structure>
+                    <structure>
+                        <property name="position">2</property>
+                        <property name="name">productTypeId</property>
+                        <property name="dataType">string</property>
+                    </structure>
+                    <structure>
+                        <property name="position">3</property>
+                        <property name="name">internalName</property>
+                        <property name="dataType">string</property>
+                    </structure>
+                </list-property>
+            </structure>
+            <property name="dataSource">OFBiz</property>
+            <method name="open"><![CDATA[products = null;
+try {
+    products = delegator.findAll("Product");
+} catch (e) {
+    Debug.logError(e, module);
+}
+totalRow = 0;
+countOfRow = 0;
+if (products) {
+    totalRow = products.size();
+}]]></method>
+            <method name="fetch"><![CDATA[if (countOfRow == totalRow - 1) return false;
+
+product = products.get(countOfRow);
+productId = product.getString("productId");
+productTypeId = product.getString("productTypeId");
+internalName = product.getString("internalName");
+
+row["productId"] = productId;
+row["productTypeId"] = productTypeId;
+row["internalName"] = internalName;
+
+countOfRow ++;
+return true;]]></method>
+        </script-data-set>
+    </data-sets>
+    <styles>
+        <style name="report" id="4">
+            <property name="fontFamily">sans-serif</property>
+            <property name="fontSize">10pt</property>
+        </style>
+        <style name="crosstab-cell" id="5">
+            <property name="borderBottomColor">#CCCCCC</property>
+            <property name="borderBottomStyle">solid</property>
+            <property name="borderBottomWidth">1pt</property>
+            <property name="borderLeftColor">#CCCCCC</property>
+            <property name="borderLeftStyle">solid</property>
+            <property name="borderLeftWidth">1pt</property>
+            <property name="borderRightColor">#CCCCCC</property>
+            <property name="borderRightStyle">solid</property>
+            <property name="borderRightWidth">1pt</property>
+            <property name="borderTopColor">#CCCCCC</property>
+            <property name="borderTopStyle">solid</property>
+            <property name="borderTopWidth">1pt</property>
+        </style>
+        <style name="crosstab" id="6">
+            <property name="borderBottomColor">#CCCCCC</property>
+            <property name="borderBottomStyle">solid</property>
+            <property name="borderBottomWidth">1pt</property>
+            <property name="borderLeftColor">#CCCCCC</property>
+            <property name="borderLeftStyle">solid</property>
+            <property name="borderLeftWidth">1pt</property>
+            <property name="borderRightColor">#CCCCCC</property>
+            <property name="borderRightStyle">solid</property>
+            <property name="borderRightWidth">1pt</property>
+            <property name="borderTopColor">#CCCCCC</property>
+            <property name="borderTopStyle">solid</property>
+            <property name="borderTopWidth">1pt</property>
+        </style>
+    </styles>
+    <page-setup>
+        <simple-master-page name="Simple MasterPage" id="2">
+            <page-footer>
+                <text id="3">
+                    <property name="contentType">html</property>
+                    <text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
+                </text>
+            </page-footer>
+        </simple-master-page>
+    </page-setup>
+    <body>
+        <table id="10">
+            <property name="dataSet">Product</property>
+            <list-property name="boundDataColumns">
+                <structure>
+                    <property name="name">productId</property>
+                    <text-property name="displayName">productId</text-property>
+                    <expression name="expression">dataSetRow["productId"]</expression>
+                    <property name="dataType">string</property>
+                </structure>
+                <structure>
+                    <property name="name">productTypeId</property>
+                    <text-property name="displayName">productTypeId</text-property>
+                    <expression name="expression">dataSetRow["productTypeId"]</expression>
+                    <property name="dataType">string</property>
+                </structure>
+                <structure>
+                    <property name="name">internalName</property>
+                    <text-property name="displayName">internalName</text-property>
+                    <expression name="expression">dataSetRow["internalName"]</expression>
+                    <property name="dataType">string</property>
+                </structure>
+            </list-property>
+            <column id="29"/>
+            <column id="30"/>
+            <column id="31"/>
+            <header>
+                <row id="11">
+                    <property name="backgroundColor">#BFBFBF</property>
+                    <property name="fontWeight">bold</property>
+                    <property name="textAlign">center</property>
+                    <cell id="12">
+                        <label id="13">
+                            <text-property name="text">productId</text-property>
+                        </label>
+                    </cell>
+                    <cell id="14">
+                        <label id="15">
+                            <text-property name="text">productTypeId</text-property>
+                        </label>
+                    </cell>
+                    <cell id="16">
+                        <label id="17">
+                            <text-property name="text">internalName</text-property>
+                        </label>
+                    </cell>
+                </row>
+            </header>
+            <detail>
+                <row id="18">
+                    <cell id="19">
+                        <data id="20">
+                            <property name="resultSetColumn">productId</property>
+                        </data>
+                    </cell>
+                    <cell id="21">
+                        <data id="22">
+                            <property name="resultSetColumn">productTypeId</property>
+                        </data>
+                    </cell>
+                    <cell id="23">
+                        <data id="24">
+                            <property name="resultSetColumn">internalName</property>
+                        </data>
+                    </cell>
+                </row>
+            </detail>
+            <footer>
+                <row id="25">
+                    <cell id="26"/>
+                    <cell id="27"/>
+                    <cell id="28"/>
+                </row>
+            </footer>
+        </table>
+    </body>
+</report>

Modified: ofbiz/trunk/framework/example/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/ofbiz-component.xml?rev=892658&r1=892657&r2=892658&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/ofbiz-component.xml (original)
+++ ofbiz/trunk/framework/example/ofbiz-component.xml Sun Dec 20 20:47:20 2009
@@ -58,4 +58,11 @@
         location="webapp/example"
         base-permission="OFBTOOLS,EXAMPLE"
         mount-point="/example"/>
+    <webapp name="birt"
+        title="BIRT"
+        server="default-server"
+        location="webapp/birt"
+        base-permission="OFBTOOLS,WEBTOOLS"
+        mount-point="/birt"/>
+        
 </ofbiz-component>

Added: ofbiz/trunk/framework/example/webapp/birt/WEB-INF/birt.tld
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/webapp/birt/WEB-INF/birt.tld?rev=892658&view=auto
==============================================================================
--- ofbiz/trunk/framework/example/webapp/birt/WEB-INF/birt.tld (added)
+++ ofbiz/trunk/framework/example/webapp/birt/WEB-INF/birt.tld Sun Dec 20 20:47:20 2009
@@ -0,0 +1,1157 @@
+<?xml version='1.0' encoding='ISO-8859-1' ?>
+<!DOCTYPE taglib
+    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+<taglib>
+	<tlib-version>1.0</tlib-version>
+	<jsp-version>1.2</jsp-version>
+	<short-name>BIRT Tag Library</short-name>
+	<uri>http://www.eclipse.org/birt/taglibs/birt.tld</uri>
+	<description>
+		This Tag Library makes user develope JSP with BIRT Viewer component easily.
+	</description>
+	
+    <!--**********************************************-->
+    <!--             Viewer Tag                       -->
+    <!--**********************************************-->
+	<tag>
+		<name>viewer</name>
+		<tag-class>org.eclipse.birt.report.taglib.ViewerTag</tag-class>
+		<body-content>JSP</body-content>
+		<description>
+			The viewer tag is to specify how to import and control BIRT Report Viewer into JSP page.
+			This tag will use Ajax framework to retrieve report content.
+		</description>
+
+		<attribute>
+			<name>id</name>
+			<required>true</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the current viewer id. It should be unique.
+				It can contain number,letter or underline.
+			</description>			
+		</attribute>	
+
+        <attribute>
+            <name>pattern</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies which servlet pattern to be used to preview report.
+            	Default value is frameset.
+            	( frameset or run )
+            </description>
+        </attribute>
+        		        
+        <attribute>
+            <name>baseURL</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies base URL of BIRT viewer.
+            	Default to the current context.
+            </description>
+        </attribute>
+        
+        <attribute>
+            <name>title</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report title displayed at the top.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>isHostPage</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies whether the viewer occupies the whole page.
+            	Default to false.
+            </description>
+        </attribute>
+
+       <attribute>
+            <name>scrolling </name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the IFrame style "scrolling ".
+            	If isHostPage is true, ignore this attribute.
+            	( auto | yes | no )
+            </description>
+        </attribute>
+
+       <attribute>
+            <name>position</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the style "position" of report container.
+            	If isHostPage is true, ignore this attribute.
+            	( static | absolute | fixed | relative )
+            </description>
+        </attribute>
+
+       <attribute>
+            <name>style</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the style of report container.
+            	If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+                        
+        <attribute>
+            <name>height</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the height of report container in pixels.
+            	If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>width</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+	            Sets the width of report container in pixels.
+	            If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>top</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the top of report container in pixels.
+            	If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>left</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+ 				Sets the left of report container in pixels.
+ 				If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>frameborder</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+ 				Specifies whether displays the iframe border.
+				Default to no. 
+				If isHostPage is true, ignore this attribute.
+				( Yes | No )
+            </description>
+        </attribute>
+                        
+		<attribute>
+			<name>reportDesign</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the report design file name.
+				( Absolute path, relative path or URL )
+			</description>	
+		</attribute>		
+
+		<attribute>
+			<name>reportDocument</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the report document file name. 
+				Noted: only support "file:" URL format.
+				( Absolute path, relative path or URL ) 
+			</description>	
+		</attribute>		
+
+		<attribute>
+			<name>reportletId</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the instance id of reportlet.
+				The "reportDocument" attribute should be required.
+				Noted: frameset pattern doesn't support reportlet.
+			</description>	
+		</attribute>
+				
+		<attribute>
+			<name>bookmark</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the targeted bookmark name.
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>locale</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the Locale information.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>timeZone</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00".
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>svg</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether supports the SVG output format or not.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>format</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the output format of report.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>emitterId</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the emitter id for the report output.
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>pageOverflow</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the page overflow setting for the PDF format.
+				One of the following values:
+				0 for "auto", 1 for "actual size", 2 for "fit to page". 
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>rtl</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether supports rtl page or not.
+			</description>			
+		</attribute>
+				
+		<attribute>
+			<name>pageNum</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies output page number when render document file.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>pageRange</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies page range when render document file.
+			</description>			
+		</attribute>
+								
+		<attribute>
+			<name>resourceFolder</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the referenced resource folder.
+				Default value is defined in web.xml.
+			</description>			
+		</attribute>
+											
+		<attribute>
+			<name>forceOverwriteDocument</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether forces to overwrite the generated document.
+				If allowPageBreak is false,ignore this attribute.
+				Default value is defined in web.xml.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>showTitle</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether shows the report title.
+				Default to true.
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>showToolBar</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether shows the toolbar.
+				Default to true.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>showNavigationBar</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether shows the Navigation Bar.
+				If allowPageBreak is false,ignore this attribute.
+				Default to true.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>showParameterPage</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether show the parameter dialog or not.
+				Default to true.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>isReportlet</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether render reportlet by bookmark.
+				Default to false.
+			</description>			
+		</attribute>
+		
+	</tag>
+
+ 	<!--**********************************************-->
+    <!--             Report Tag                       -->
+    <!--**********************************************-->
+    <tag>
+        <name>report</name>
+        <tag-class>org.eclipse.birt.report.taglib.ReportTag</tag-class>
+        <body-content>JSP</body-content>
+        <description>
+        	The report tag can provide fast report preview without Ajax framework. 
+			The report content can be output to web browser directly.
+        </description>
+
+		<attribute>
+			<name>id</name>
+			<required>true</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the current viewer id. It should be unique.
+				It can contain number,letter or underline.
+			</description>			
+		</attribute>	
+		        
+        <attribute>
+            <name>baseURL</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies base URL of BIRT viewer.
+            	Default to the current context.
+				If report container is DIV, ignore this attribute.
+            </description>
+        </attribute>
+        
+        <attribute>
+            <name>isHostPage</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies whether the viewer occupies the whole page.
+            	Default to false.
+            </description>
+        </attribute>
+
+       <attribute>
+            <name>scrolling </name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the DIV/IFrame style "scrolling ".
+            	If isHostPage is true, ignore this attribute.
+            	( auto | yes | no )
+            </description>
+        </attribute>
+
+       <attribute>
+            <name>position</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the style "position" of report container.
+            	If isHostPage is true, ignore this attribute.
+            	( static | absolute | fixed | relative )
+            </description>
+        </attribute>
+
+       <attribute>
+            <name>style</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the style of report container.
+            	If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+                        
+        <attribute>
+            <name>height</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the height of report container in pixels.
+            	If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>width</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+	            Sets the width of report container in pixels.
+	            If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>top</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the top of report container in pixels.
+            	If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>left</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+ 				Sets the left of report container in pixels.
+ 				If isHostPage is true, ignore this attribute.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>frameborder</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+ 				Specifies whether displays the iframe border.
+ 				Available when user IFrame.
+				Default to no.
+				( Yes | No )
+            </description>
+        </attribute>
+
+		<attribute>
+			<name>reportDesign</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the report design file name.
+				( Absolute path, relative path or URL )
+			</description>	
+		</attribute>		
+
+		<attribute>
+			<name>reportDocument</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the report document file name. 
+				Noted: only support "file:" URL format.
+				( Absolute path, relative path or URL ) 
+			</description>	
+		</attribute>
+
+		<attribute>
+			<name>reportletId</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the instance id of reportlet.
+				The "reportDocument" attribute should be required.
+			</description>	
+		</attribute>
+                        	
+		<attribute>
+			<name>bookmark</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the targeted bookmark name.
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>locale</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the Locale information.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>timeZone</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00".
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>svg</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether supports the SVG output format or not.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>format</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the output format of report.
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>emitterId</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the emitter id for the report output.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>pageOverflow</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the page overflow setting for the PDF format.
+				One of the following values:
+				0 for "auto", 1 for "actual size", 2 for "fit to page". 
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>rtl</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether supports rtl page or not.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>showParameterPage</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether show the parameter dialog or not.
+				Default to true.
+				If report container is DIV, ignore this attribute.
+			</description>			
+		</attribute>
+												
+		<attribute>
+			<name>resourceFolder</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the referenced resource folder.
+				Default value is defined in web.xml.
+			</description>			
+		</attribute>			
+									
+		<attribute>
+			<name>reportContainer</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies iframe or div as report container.
+				Default to iframe.
+				( iframe | div )
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>pageNum</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies output page number when render document file.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>pageRange</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies page range when render document file.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>isReportlet</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether render reportlet by bookmark.
+				Default to false.
+			</description>			
+		</attribute>
+		        
+    </tag>	
+    
+    <!--**********************************************-->
+    <!--             Report Parameter Tag             -->
+    <!--**********************************************-->
+     <tag>
+        <name>param</name>
+        <tag-class>org.eclipse.birt.report.taglib.ParamTag</tag-class>
+        <body-content>JSP</body-content>
+        <description>
+        	The param tag specifies the parameters defined in report design file.
+        </description>
+        <attribute>
+            <name>name</name>
+            <required>true</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter name.
+            </description>
+        </attribute>
+        <attribute>
+            <name>pattern</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter pattern format.
+            </description>
+        </attribute>     
+        <attribute>
+            <name>value</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter value. If doesn't set, value is null.
+            </description>
+        </attribute>
+        <attribute>
+            <name>displayText</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter display text.
+            </description>
+        </attribute>
+        <attribute>
+            <name>delim</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the delimiter for multiple values.
+            	Defaults to pipe "|".
+            </description>
+        </attribute>
+        <attribute>
+            <name>isLocale</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies whether the report parameter value is a locale/format related string.
+            </description>
+        </attribute>
+     </tag>   
+
+    <!--**********************************************-->
+    <!--             Report Parameter Value Tag       -->
+    <!--**********************************************-->
+     <tag>
+        <name>value</name>
+        <tag-class>org.eclipse.birt.report.taglib.ParamValueTag</tag-class>        
+        <body-content>JSP</body-content>
+        <description>
+        	The param value tag specifies multiple values for a given param tag.
+        </description>
+        <attribute>
+            <name>value</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter value. If doesn't set, value is null.
+            </description>
+        </attribute>
+        <attribute>
+            <name>displayText</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter display text.
+            </description>
+        </attribute>
+     </tag>   
+     
+    <!--**********************************************-->
+    <!--             ParameterPage Tag                -->
+    <!--**********************************************-->
+    <tag>
+        <name>parameterPage</name>
+        <tag-class>org.eclipse.birt.report.taglib.RequesterTag</tag-class>
+        <body-content>JSP</body-content>
+        <description>
+        	The parameterPage tag can help developers to display BIRT parameter page or create a user-defined parameter page.
+			This tag can collect these parameters and submit to BIRT servlet to handle request.
+        </description>
+        
+        <attribute>
+			<name>id</name>
+			<required>true</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the parameter page id.It should be unique.
+				It can contain number,letter or underline.				
+			</description>			
+		</attribute>	
+        
+        <attribute>
+            <name>name</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the parameter page name. 
+            	If attribute 'isCustom' is true, this name should be required and unique.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>isCustom</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies whether uses the user-defined parameter page.
+            	If false, use the BIRT parameter dialog.
+            	Default to false.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>title</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report title displayed at the top.
+            </description>
+        </attribute>
+                        
+      	<attribute>
+            <name>baseURL</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies base URL of BIRT viewer. 
+            	Default to the current context.
+            </description>
+        </attribute>
+		
+		<attribute>
+            <name>scrolling </name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the DIV/IFrame style "scrolling ".
+            	( auto | yes | no )
+            </description>
+        </attribute>
+        
+       <attribute>
+            <name>position</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the style "position" of parameter page.
+            	( static | absolute | fixed | relative )
+            </description>
+        </attribute>
+
+       <attribute>
+            <name>style</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the style of parameter page.
+            </description>
+        </attribute>
+                        
+        <attribute>
+            <name>height</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the height of parameter page in pixels.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>width</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+	            Sets the width of parameter page in pixels.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>top</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Sets the top of parameter page in pixels.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>left</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+ 				Sets the left of parameter page in pixels.
+            </description>
+        </attribute>
+
+        <attribute>
+            <name>frameborder</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+ 				Specifies whether displays the iframe border.
+				Default to no.
+				If set "isCustom" to true, ignore this attribute.
+				( Yes | No )
+            </description>
+        </attribute>
+                        
+		<attribute>
+			<name>reportDesign</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the report design file name.
+				( Absolute path, relative path or URL )
+			</description>	
+		</attribute>		
+
+		<attribute>
+			<name>reportDocument</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the report document file name. 
+				Noted: only support "file:" URL format.
+				( Absolute path, relative path or URL ) 
+			</description>	
+		</attribute>		
+
+		<attribute>
+			<name>reportletId</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the instance id of reportlet.
+				The "reportDocument" attribute should be required.
+				Noted: frameset pattern doesn't support reportlet.
+			</description>	
+		</attribute>
+
+		<attribute>
+			<name>pattern</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the servlet pattern for request submit. 
+				BIRT supports three patterns: frameset, run and preview. 
+				Can refer to the user-defined servlet pattern.
+				Default to frameset.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>target</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the target window for request submit.
+			</description>			
+		</attribute>
+						
+		<attribute>
+			<name>bookmark</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the targeted bookmark name.
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>locale</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the Locale information.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>timeZone</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00".
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>svg</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether supports the SVG output format or not.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>format</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the output format of report.
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>emitterId</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the emitter id for the report output.
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>pageOverflow</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the page overflow setting for the PDF format.
+				One of the following values:
+				0 for "auto", 1 for "actual size", 2 for "fit to page". 
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>rtl</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether supports rtl page or not.
+			</description>			
+		</attribute>
+							
+		<attribute>
+			<name>resourceFolder</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies the referenced resource folder.
+				Default value is defined in web.xml.
+			</description>			
+		</attribute>			
+								
+		<attribute>
+			<name>forceOverwriteDocument</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether forces to overwrite the generated document.
+				If allowPageBreak is false,ignore this attribute.
+				Default value is defined in web.xml.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>showTitle</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether shows the report title.
+				Default to true.
+			</description>			
+		</attribute>
+		
+		<attribute>
+			<name>showToolBar</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether shows the toolbar.
+				Default to true.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>showNavigationBar</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether shows the Navigation Bar.
+				If allowPageBreak is false,ignore this attribute.
+				Default to true.
+			</description>			
+		</attribute>
+
+		<attribute>
+			<name>isReportlet</name>
+			<required>false</required>
+			<rtexprvalue>true</rtexprvalue>
+			<description>
+				Specifies whether render reportlet by bookmark.
+				Default to false.
+			</description>			
+		</attribute>
+				        
+    </tag>
+
+    <!--**********************************************-->
+    <!--      Report Parameter Definition Tag         -->
+    <!--**********************************************-->
+     <tag>
+        <name>paramDef</name>
+        <tag-class>org.eclipse.birt.report.taglib.ParamDefTag</tag-class>
+        <body-content>JSP</body-content>
+        <description>
+        	The param tag is used to generate html code for defined parameter in ParameterPage tag.
+        </description>
+        <attribute>
+            <name>id</name>
+            <required>true</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the id of parameter control.It should be unique.
+				It can contain number,letter or underline.
+            </description>
+        </attribute>
+        <attribute>
+            <name>name</name>
+            <required>true</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter name.
+            </description>
+        </attribute>
+        <attribute>
+            <name>pattern</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter pattern format.
+            	It is used to parse defined parameter value string.
+            </description>
+        </attribute>     
+        <attribute>
+            <name>value</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter value. If doesn't set, use default value.
+            </description>
+        </attribute>
+        <attribute>
+            <name>displayText</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the report parameter display text.
+            </description>
+        </attribute>
+        <attribute>
+            <name>isLocale</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies whether the report parameter value is a locale/format related string.
+            	It is used to parse defined parameter value string.
+            </description>
+        </attribute>
+        <attribute>
+            <name>title</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the title attribute of parameter control.
+            </description>
+        </attribute>        
+        <attribute>
+            <name>cssClass</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the css class attribute of parameter control.
+            </description>
+        </attribute>
+        <attribute>
+            <name>style</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+            	Specifies the parameter control style.
+            </description>
+        </attribute>        
+     </tag>        		
+</taglib>
\ No newline at end of file

Added: ofbiz/trunk/framework/example/webapp/birt/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/webapp/birt/WEB-INF/controller.xml?rev=892658&view=auto
==============================================================================
--- ofbiz/trunk/framework/example/webapp/birt/WEB-INF/controller.xml (added)
+++ ofbiz/trunk/framework/example/webapp/birt/WEB-INF/controller.xml Sun Dec 20 20:47:20 2009
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd">
+    <!-- The controller elements that are common to all OFBiz components
+         can be found in the following xml file. A component can override the
+         elements found in the common-controller.xml file. -->
+    <include location="component://common/webcommon/WEB-INF/common-controller.xml"/>
+    <include location="component://commonext/webapp/WEB-INF/controller.xml"/>
+    
+    <description>Birt Component Site Configuration File</description>
+    <owner>Copyright 2001-2008 The Apache Software Foundation</owner>
+
+    <!--
+      These can be used to return the reports as views; make sure the classes are compiled and available
+        <handler name="datavision" type="view" class="org.ofbiz.webapp.view.DataVisionViewHandler"/>
+        <handler name="jasperreportspdf" type="view" class="org.ofbiz.webapp.view.JasperReportsPdfViewHandler"/>
+        <handler name="jasperreportsxml" type="view" class="org.ofbiz.webapp.view.JasperReportsXmlViewHandler"/>
+    -->
+
+    <!-- Events to run on every request before security (chains exempt) -->
+    <!--
+    <preprocessor>
+    </preprocessor>
+    -->
+    <!-- Events to run on every request after all other processing (chains exempt) -->
+    <!--
+    <postprocessor>
+        <event type="java" path="org.ofbiz.webapp.event.TestEvent" invoke="test"/>
+    </postprocessor>
+    -->
+
+    <!-- Request Mappings -->
+    <request-map uri="main">
+        <security https="true" auth="true"/>
+        <response name="success" type="view" value="main"/>
+    </request-map>
+    <request-map uri="Report">
+        <security https="true" auth="true"/>
+        <response name="success" type="view" value="Report"/>
+    </request-map>
+    <request-map uri="Mail">
+        <security https="true" auth="true"/>
+        <response name="success" type="view" value="Mail"/>
+    </request-map>
+    <request-map uri="sendBirtMail">
+        <security https="true" auth="true"/>
+        <event type="service" invoke="sendBirtMail"/>
+        <response name="success" type="view" value="Mail"/>
+        <response name="error" type="view" value="Mail"/>
+    </request-map>
+    <request-map uri="ViewHandler">
+        <security https="true" auth="true"/>
+        <response name="success" type="view" value="ViewHandler"/>
+    </request-map>
+
+    <!-- end of request mappings -->
+
+    <!-- View Mappings -->
+    <view-map name="main" type="screen" page="component://example/widget/example/BirtScreens.xml#main"/>
+    <view-map name="Viewer" type="screen" page="component://birt/widget/example/BirtScreens.xml#Viewer"/>
+    <view-map name="Report" type="screen" page="component://birt/widget/example/BirtScreens.xml#Report"/>
+    <view-map name="Mail" type="screen" page="component://birt/widget/example/BirtScreens.xml#EditMail"/>
+    
+    <!-- Supported Content Types -->
+    <!--
+        text/html
+        application/pdf
+        application/vnd.ms-excel
+        application/vnd.ms-word
+        application/vnd.ms-powerpoint
+     -->
+    <view-map name="ViewHandler" type="birt" page="component://example/webapp/birt/report/product.rptdesign" content-type="application/pdf"/>
+    <!-- end of view mappings -->
+</site-conf>