...
...
Generates a JasperReports report using the specified format or PDF if no format is specified.
Parameters | Required | Description |
---|---|---|
location | yes | the location to go to after execution |
parse | no | true by default. If set to false, the location param will not be parsed for Ognl expressions |
dataSource | yes | the Ognl expression used to retrieve the datasource from the value stack (usually a List) |
format | no | the format in which the report should be generated, defaults to pdf. Valid Formats: (HTML,PDF,XLS,CSV) |
contentDisposition | no | defaults to "inline" when using documentName unless specified |
documentName | no | generates the http header "Content-disposition = <contentDisposition>; filename=<documentName>.<format>" |
...
<result name="success" type="jasper">
<param name="location">foo.jasper</param>
<param name="dataSource">mySource</param>
<param name="format">CSV</param>
</result>
or for pdf
...
is a powerful open source Java (LGPL) reporting tool that has the ability to deliver rich content onto the screen, to the printer or into PDF, HTML, XLS, CSV and XML files.
The JasperReports plugin INLINE
enables Actions to create high-quality reports as results
...
Features
- Allows Actions to be rendered through JasperReports
Usage
To use this plugin, have your packages that contain the target actions extend the provided jasperreports-default
package, which contains the jasper
result type. Then, simply use the result type in the desired actions. The result takes the following parameters:
...
Examples
...
or for pdf:
...
Settings
This plugin doesn't provide any global settings.
Installation
This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib
directory. No other files need to be copied or created.
...
See also Compiling JasperReports JRXML Files with Maven (Mark Menard)
...