hq4ever Posted September 6, 2009 Share Posted September 6, 2009 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 More sharing options...
pawel_r Posted September 7, 2009 Share Posted September 7, 2009 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 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