Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
19Activity
0 of .
Results for:
No results containing your search query
P. 1
Using the BIRT Report Viewer-AJAX based J2EE application

Using the BIRT Report Viewer-AJAX based J2EE application

Ratings:

4.57

(7)
|Views: 4,683 |Likes:
Published by toba_sayed
This Viewer is an AJAX based J2EE application that illustrates using the BIRT engine to generate and render report content.
The Web Viewer can be used to generate and render reports, and also supports more interactive features such as table of contents, exporting report content to several formats, client and server side printing, as well as report pagination. The features available will depend on what servlet mapping is used, the settings available in the web.xml file and what values are passed as parameters.
The Example Viewer can also be deployed as an Eclipse plugin in an RCP application.
The Example Viewer also ships with a tag library which can be used to provide report functionality within your existing web applications.
This Viewer is an AJAX based J2EE application that illustrates using the BIRT engine to generate and render report content.
The Web Viewer can be used to generate and render reports, and also supports more interactive features such as table of contents, exporting report content to several formats, client and server side printing, as well as report pagination. The features available will depend on what servlet mapping is used, the settings available in the web.xml file and what values are passed as parameters.
The Example Viewer can also be deployed as an Eclipse plugin in an RCP application.
The Example Viewer also ships with a tag library which can be used to provide report functionality within your existing web applications.

More info:

Published by: toba_sayed on May 05, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

 
Using the BIRT Report Viewer
Overview
This Viewer is an AJAX based J2EE application that illustrates using the BIRT engineto generate and render report content.The Web Viewer can be used to generate and render reports, and also supports moreinteractive features such as table of contents, exporting report content to severalformats, client and server side printing, as well as report pagination. The featuresavailable will depend on what servlet mapping is used, the settings available in theweb.xml file and what values are passed as parameters.The Example Viewer can also be deployed as an Eclipse plugin in an RCPapplication.The Example Viewer also ships with a tag library which can be used to provide reportfunctionality within your existing web applications.
Servlet Mappings
The BIRT Web Viewer consist of two main Servlets, the ViewerServlet and theBirtEngineServlet. These Servlets handle three mappings: ( /frameset, /run, and/preview).The
/frameset
mapping renders the report in the full AJAX viewer complete withtoolbar, navigation bar and table of contents features. This mapping also generates anintermediate report document from the report design file to support the AJAX basedfeatures.eghttp://localhost:8080/viewer/frameset?__report=myreport.rptdesign&parm1=value1The
/run
mapping runs and renders the report but does not create a report document.This mapping does not supply HTML pagination, TOC or toolbar features, but doesuse the AJAX framework to collect parameters, support report cancelling and retrievethe report output in HTML format.eg http://localhost:8080/viewer/run?__report=myreport.rptdesign&parm1=value1The
/preview
mapping runs and renders the report and does not generate a reportdocument, although an existing report document can be used in which case just therender operation occurs. The output from the run and render operation is sent directly
 
to the browser.eg http://localhost:8080/viewer/preview?__report=myreport.rptdesign&parm1=value1
Web Viewer Web.xml Settings
The web.xml file contains many settings used to configure the Viewer. These settingsare illustrated below.
AttributeDescription
BIRT_VIEWER_LOCALEThis setting sets the default locale for the Web Viewer.BIRT_VIEWER_WORKING_FOLDER This is the default location for reportdesigns. If the report design specified ina URL parameter is relative, this path is pre-pended to the report name.BIRT_VIEWER_DOCUMENT_FOLDER If a report document parameter (__document) is not used, this is thelocation that report documents will begenerated in. If this setting is left blank,the default value “webapp/documents”will be used. If the__document URL parameter is used and the value isrelative the report document will becreated in the working folder.WORKING_FOLDER_ACCESS_ONLYIf this value is set to true, reports willonly be searched for, relative to theworking folder. This prevents a user from entering a full path to a report.Relative paths below the working folder are accessible.BIRT_VIEWER_IMAGE_DIRSpecifies the default location to store
 
temporary images generated by thereport engine. If this setting is left blank, the default location of webapp/report/images is used.BIRT_VIEWER_LOG_DIR Specifies the default location to storereport engine log files. If this setting isleft blank, the default location of webapp/logs is used.BIRT_VIEWER_LOG_LEVELSets the report engine log level. Validvalues are:OFFSEVEREWARNINGINFOCONFIGFINEFINER FINESTBIRT_VIEWER_SCRIPTLIB_DIR Specifies the default location to placeJar files used by the script engine.These can be Jars used by script engineor jars containing event handlers writtenin Java. These Jars are appended to theclasspath. If this setting is left blank thedefault value of webapp/scriptlib will beused.BIRT_RESOURCE_PATHThis setting specifies the resource pathused by report engine. The resource path is used to search for libraries,images, and properties files used by areport. If this setting is left blank,resources will be searched for in thesame directory as the report.BIRT_VIEWER_MAX_ROWSSpecifies the maximum number of rowsto retrieve from a dataset.BIRT_OVERWRITE_DOCUMENTSpecifies whether to overwrite thereport document every time a report isexecuted. The default is set to true.Valid values are true and false.BIRT_VIEWER_CONFIG_FILESpecifies the location of theviewer.properties file. This file containsvarious settings used by the viewer.BIRT_VIEWER_PRINT_SERVERSIDEThis setting specifies whether server side printing is supported. If set to OFFthe toolbar icon used for server side printing will be removed automatically.Valid values are ON and OFF.

Activity (19)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Yogesh Hrl H R liked this
omasampath liked this
nitzrax liked this
Prasad Akula liked this
bk29 liked this
Roshan Shankar liked this
Said Adil liked this
redro liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->