Skip to end of metadata
Go to start of metadata

Name

DataVision Plugin

Publisher

Frank W. Zammetti

License

Open Source (ASL2)

Version

1.0

Compatibility

Struts 2.0.9+

Homepage

http://code.google.com/p/struts2datavisionplugin/

Download

http://code.google.com/p/struts2datavisionplugin/downloads/list

{rate:title=Rating|theme=dynamic|key=DataVision}

This plugin INLINE

provides support for DataVision, a popular open-source reporting package

. Feedback is welcome!

Overview

This plugin provides a new Result type and package for Struts2 that allows you to easy integrate with DataVision. Configuration is very easy (nearly everything has an intelligent default, you could literally get away with only a single configuration parameter) yet flexible (there are multiple ways to configure all parameters). With DataVision in your Struts2 application, you can produce PDF, Excel, LaTeX, DocBook, comma-separated and other formatted output for display or download quickly and easily.

DataVision (http://datavision.sourceforge.net) is an open source reporting tool similar to Crystal Reports. Reports can be designed using a drag-and-drop GUI. They may be run, viewed, and printed from the application or exported as HTML, XML, PDF, Excel, LaTeX2e, DocBook, or tab- or comma-delimited text files. The output files produced by LaTeX2e and DocBook can in turn be used to produce PDF, text, HTML, PostScript, and more.

DataVision is written in Java and runs almost anywhere. It can generate reports from databases or text data files. Any database with an available JDBC driver should work: Oracle, PostgreSQL, MySQL, Informix, hsqldb, Microsoft Access, Progress, and more. Columns read from text files can be separated by any character.

Report descriptions are stored as XML files. This means you can not only use the DataVision GUI but you may also edit reports using your favorite text editor.

Features

  • Can be configured for output in many formats including PDF, delimited, Excel, DocBook and more
  • Report parameters can be passed to report template for dynamic generation
  • Reports can be written with the DataVision GUI, or by hand if you so choose

Usage

The plug-in extends struts-default so you can extend the "datavision-default" package to use the new "datavision" result type.

Example

Please download the sample application from the downloads page to see this in action. This application contains a number of different scenarios demonstrated.

Installation

This plug-in can be installed by copying the plug-in jar into your application's /WEB-INF/lib directory. You will also need to add the DataVision dependencies:

  • Bean Scripting Framework - bsf.jar - 2.4.0
  • iText PDF generator - iText.jar - 2.0.1
  • jRuby - jruby.jar - 0.9.8
  • Jakarta Commons Logging - commons-logging.jar - 1.1
  • POI (Jakarta MS Office/Excel API) - poi.jar - -3.0.alpha3.20061212

Note: versions shown here are the currently supported versions. Newer (or even older) versions may (and in most cases will) work just fine, but these are the known good versions).

Resources

Version History

Version

Date

Author

Notes

1.0

Sep 23, 2007

fzammetti

Initial release