Jump to content
Changes to the Jaspersoft community edition download ×

Sending data to report to display


Recommended Posts

Hello everyone 

i want to display report in my web application using Visualize.js and jasper report server , i configure all thing (server , frontend, backend ..). and the report connect to database and display the report ,but i do not want jasper server to connect to my database . i want to send the data to jasper server and render the report in my web application using Visualize.js. 

is there any way to send data to report , some thing like sending paramter to server & report.

thank you .

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

No. It's the JasperReports Server that fetches the data.

If you want to push the data, you'll need to write a servlet to accept the data and pass it to JasperReports library as a data source (such as csv and beans) and generate a report. 

Link to comment
Share on other sites

Do you want to send your json every time you generate a report or want to update the data so other users would be able to view the report with the updated data?

narcism way of passing json string via parameter would work when json string is passed each time the report is to be generated.

If you want to update the data used to generate a report, all that's required is to create a simple servlet to receive the json data and save it in a data source. (e.g. update data in in memory database or beans.)

Following page contains a simple example of a servlet. It's possible to deploy the servlet on the same Tomcat as JasperReports Server.


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...