Web framework with JasperReports integration?
Posted
by Dave Jarvis
on Stack Overflow
See other posts from Stack Overflow
or by Dave Jarvis
Published on 2010-05-02T16:16:05Z
Indexed on
2010/05/02
16:17 UTC
Read the original article
Hit count: 298
What web development frameworks natively support JasperReports?
Consider the following form as an example:
<form name="report" method="post">
<input type="hidden" name="REPORT_PATH" value="reports/Names" />
<input type="hidden" name="REPORT_FILE" value="List" />
<input type="hidden" name="REPORT_FORMAT" value="pdf" />
<input type="hidden" name="REPORT_EMBED" value="false" />
Name: <input type="text" name="report_Name" value="" /><br />
Date: <input type="text" name="report_Date" value="" /><br />
<input type="submit" name="View" value="View" />
</form>
The framework would pass the report_
parameters to JasperReports, which in turn runs reports/Names/List.jasper
, and then sends a PDF attachment to the browser.
In general:
- Ability to configure report (i.e., the hidden
REPORT_
variables) - Web FORM for setting report parameters (i.e., the
report_
variables) - Framework handles configuring database connection, report execution, etc.
I don't care about the technical minutia on how the integration works. The example above is just one possibility of many.
© Stack Overflow or respective owner