Wiki Markup |
---|
{snippet:id=description|javadoc=true|url=com.opensymphony.webwork.views.jasperreports.JasperReportsResult} |
Parameters
Wiki Markup |
---|
{snippet:id=params|javadoc=true|url=com.opensymphony.webwork.views.jasperreports.JasperReportsResult} |
Examples
Wiki Markup |
---|
{snippet:id=example1|lang=xml|javadoc=true|url=com.opensymphony.webwork.views.jasperreports.JasperReportsResult} |
or for pdf:
Wiki Markup |
---|
{snippet:id=example2|lang=xml|javadoc=true|url=com.opensymphony.webwork.views.jasperreports.JasperReportsResult} |
JasperReports
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
Code Block | ||
---|---|---|
xml | xml |
<result name="success" type="jasper">
<param name="location">foo.jasper</param>
<param name="dataSource">mySource</param>
</result>
|