rajesh.majoju Posted April 16, 2014 Share Posted April 16, 2014 We are implementing a web application. We require jasper report to view at client machine whenever client accesss the server.Can you suggest how jasperserver will integrate with web application. We are using Eclipse to develop the web application.Urgent need. Link to comment Share on other sites More sharing options...
sadakar Posted April 21, 2014 Share Posted April 21, 2014 Hi.. Search for Embeeding BI in jasper community site in WIKI section. You need to call jasper dashboard URL in iframe tags.Also you need to pass several parameters like viewAsDashboardFrame=true and the username and password from the URL.http://community.jaspersoft.com/wiki/embedding-using-http-api Link to comment Share on other sites More sharing options...
rodney.barbati Posted January 5, 2017 Share Posted January 5, 2017 In the past, multiple times, I have created jasper reports integration in web applications in the following manner...This assumes that you have created your reports with the data source defined in the report definition (i.e. The SQL statement to select data for the report is in the report definition.)Create database table for storing the following...Report DefinitionsNamejrxml file nameCLOB containing HTML needed to present form to collect input parameters for report from userCreate a servlet which the reporting UI will use to communicate with the server and jasper reports engineCreate a web page that presents the Report UILet user select desired report from list retrieved from above table through the above servletOn selection of report...Retrieve the HTML associated with the report from above table through above servletPresent form retrieved from above table in divLet user edit the formSubmit the form to the servletOn the server, compile the jrxml file associated with the selected reportPump the parameters obtained in the last submit to the servlet into the compiled reportProduce the report using the jasper engine to a .pdf streamOutput that stream to the report UI for display (and possible conversions supported by the report UI)This approach provides your web application with a single implementation that allows for producing and viewing any or all reports, as well as allowing the user to control the rendering of the report as well (i.e. turn headers on/off). By presenting the reports in the UI as well, you can also provide buttons for printing and converting to different formats which can be used by all reports. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now