Jump to content
Changes to the Jaspersoft community edition download ×

help open report in jsp ( using a web browser)


Recommended Posts

hey people.  i have in a jsp code of my report (it works fine) , but the data what i use on it is in a javascript file.

All is good, i send my data with http post, i can read it in my jsp ( i use some system.out and i saw my data)

but the thing is how can i display it in my browser?

 

note: before i used a method in js called window.open(url+"?data="+JSON.stringify(params), "_blank"); but i had to change it for http post because i could not send big data.

but i worked fine with small data..

 

Any idea Thanks..!

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

If you have commercial version, you can use visualize.js.

If you have community version, you can just call REST API to get the report in html format and just do a innerHTML to set the report in you html page. The following page contains the syntax to get the report (in production, recommend you use async reportexecutions)

http://community.jaspersoft.com/documentation/tibco-jasperreports-server-web-services-guide/v62/running-report

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...