Jump to content

HTML expoter - Displaying JS in the exported outpu


hq4ever

Recommended Posts

Hello,

 

I'm looking for a way to make my reports more interactive.

I would like to export an HTML where I will embedded my custom logic based on JS.

How can I cause the HTML Exporter to write code directly into the outputed HTML, I've tried to do this with StaticText and it esacped my characters (avoiding xss).

 

Thank you for the help,

Maxim.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I am not sure if it helps, but maybe you can use JRHtmlExporterParameter.HTML_HEADER parameter.

I am not sure if it will work with jasper, but even if it does the quite big fallback is that you have to put that in your java code as HtmlExporter parameter, so for each report generated to html (if you have just one object of exporter)

Also remeber that by default this parameter (HTML_HEADER) keeps default html header (all between and

tags - don't forget to include that in your code)
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...