Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
executing report from jsp
gourav
<pre class="_prettyXprint _lang-js"><%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%><%@ taglib uri="/birt.tld" prefix="birt" %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>My Report - JSP</title> </head> <body> <birt:viewer id="birtViewer" reportDesign="hdr_rpt.rptdesign" pattern="frameset" height="800" width="775" isHostPage="false" frameborder="0" scrolling="false" style="border-radius:25px; border:3px solid silver" format="html"> </birt:viewer> </body></html></pre><p>i used the above code but having problem at "/birt.tld"</p><p>error :---<em><strong> Can not find the tag library descriptor for "/birt.tld"</strong></em></p><p>pls. suggest the jar files or any other file required for it</p>
Find more posts tagged with
Comments
gourav
<p>the above problem is solved but now I met another problem</p><p><em><strong>Unable to load tag handler class "org.eclipse.birt.report.taglib.ViewerTag" for tag "birt:viewer"</strong></em></p><p>pls. tell the jar files required for running the report</p>
404040
<p>just check web.xml whether it include are not....</p><p><span style="font-size:14px;"><jsp-config></span></p><div> <taglib></div><div> <taglib-uri>/birt.tld</taglib-uri></div><div> <taglib-location>/WEB-INF/tlds/birt.tld</taglib-location></div><div> </taglib></div><div> </jsp-config></div>
gourav
<p>i have included it the problem is that i am unable to find the required plugins of eclipse like <em><strong>org.eclipse.birt.report.taglib.ViewerTag</strong></em> for viwer tag</p><p>pls can you give me the location from where i can download it</p>
gourav
<p>the ViewerTag.class was found in the viewservelets.jar but the jsp page on running on server does not recognises it and throws exception</p><p><em><strong>org.eclipse.birt.report.taglib.Viewer</strong></em><strong>Tag for viewer tag</strong>.</p><p>pls. help</p><p>heres the jsp code</p><pre class="_prettyXprint"><%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%><%@ taglib uri="WEB-INF/tlds/birt.tld" prefix="birt" %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>My Report - JSP</title> </head> <body> <birt:viewer id="birtViewer" reportDesign="rw_itemgrpmst.rptdesign" pattern="run" height="800" width="775" format="html" isHostPage="false" frameborder="0" scrolling="false" style="border-radius:25px; border:3px solid silver"> <birt:param name="param1" value=""></birt:param> </birt:viewer> </body> </html></pre>
404040
<p>wt is the version of birt-run time and eclipse?</p>
gourav
<p>the eclipse I am using is indigo downloaded as integrated one</p>
gourav
<p>the above problem is solved by adding a list of jar files found at</p><p> </p><p><a data-ipb='nomediaparse' href='
https://source.openmrs.org/browse/Modules/birtmodule/branches/birtengine-2.3.1/lib/org.eclipse.emf.common_2.4.0.v200808251517.jar?r2=15395&r=15395&r=15395&r=15395&r=15395&r=15395&r=15395&r1=15111&r=15395'>https://source.openmrs.org/browse/Modules/birtmodule/branches/birtengine-2.3.1/lib/org.eclipse.emf.common_2.4.0.v200808251517.jar?r2=15395&r=15395&r=15395&r=15395&r=15395&r=15395&r=15395&r1=15111&r=15395</a></p><p> </p><p> </p><p>but
now i have the following problem</p><p> </p><p><strong class='bbc'>type</strong> Status report</p><p><strong class='bbc'>message</strong> <span class='bbc_underline'>/evgoldreport/frameset</span></p><p><strong class='bbc'>description</strong> <span class='bbc_underline'>The requested resource is not available.</span></p><p> </p><p> </p><p>no more description of error found in the console or error log</p><p> </p><p> </p><p> </p><p> </p><p> </p><p>thanks in advance</p>
gourav
<pre class="_prettyXprint"><?xml version="1.0" encoding="utf-8"?><web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>Eclipse BIRT Report Viewer</display-name> <!-- 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></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>${birt.viewer.working.path}/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> <!-- Settings for how to deal with the url report path. e.g. "http://host/repo/test.rptdesign". Following values are supported: <all> - All paths. <domain> - Only the paths with host matches current domain. Note the comparison is literal, "127.0.0.1" and "localhost" are considered as different hosts. <none> - URL paths are not supported. Defaults to "domain". --> <context-param> <param-name>URL_REPORT_PATH_POLICY</param-name> <param-value>domain</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>${birt.viewer.working.path}/report/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>${birt.viewer.working.path}/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></param-value> </context-param> <!-- Resource location directory. Defaults to ${birt home} --> <context-param> <param-name>BIRT_RESOURCE_PATH</param-name> <param-value></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> <!-- 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>ViewerFilter</filter-name> <servlet-name>ViewerServlet</servlet-name> </filter-mapping> <filter-mapping> <filter-name>ViewerFilter</filter-name> <servlet-name>EngineServlet</servlet-name> </filter-mapping> <!-- Viewer Servlet Context Listener --> <listener> <listener-class>org.eclipse.birt.report.listener.ViewerServletContextListener</listener-class> </listener> <!-- Viewer HttpSession Listener --> <listener> <listener-class>org.eclipse.birt.report.listener.ViewerHttpSessionListener</listener-class> </listener> <!-- Viewer Servlet, Supports SOAP --> <servlet> <servlet-name>ViewerServlet</servlet-name> <servlet-class>org.eclipse.birt.report.servlet.ViewerServlet</servlet-class> </servlet> <!-- Engine Servlet --> <servlet> <servlet-name>EngineServlet</servlet-name> <servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet</servlet-class> </servlet>
@generated@
<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> <jsp-config> <taglib> <taglib-uri>/birt.tld</taglib-uri> <taglib-location>/WEB-INF/tlds/birt.tld</taglib-location> </taglib> </jsp-config> </web-app></pre><p>all the problems are solved but the above xml file has error</p><p><em><strong>cvc-complex-type.2.3: Element 'web-app' cannot have character [children], because the type's content type is element-only</strong></em></p><p> </p><p>near lins</p><p>1. <span>xsi:schemaLocation</span><span>=</span><span>"<a data-ipb='nomediaparse' href='
http://java.sun.com/xml/ns/j2ee'>http://java.sun.com/xml/ns/j2ee</a>
;
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"</span><span>></span><em><strong>
; </strong></em></p><p><span>2.
@generated@<
;/span></p><p> </p><p> </p><p> </p><p> </p><p> </p><p>pls. help</p>
aberguesb
<p>?</p>