This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iReports - HTML format in JSP

 
Renjith Mohan
Ranch Hand
Posts: 65
Android Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi all,
My application base is Struts and MySQL. I am generating pre-compiled ireports in many formats. I have a confusion over exporting reports as HTML. There is no way to write HTML reports as a stream using JasperExportManager. I did with PDF files - they can easily be exported as stream, and displayed.

What I am doing with HTML reports is I get the the report written to an HTML file, save it, and then print using PrintWriter.

Is there any other good approach?


Thanks
Renjith
 
eshu khare
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
try out this

Map this in your struts-config.
And then on in JSP call the compiled jasper report.
Hope this will help you.
And Please correct if I am wrong somewhere.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic