File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes iReports - HTML format in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "iReports - HTML format in JSP" Watch "iReports - HTML format in JSP" New topic

iReports - HTML format in JSP

Renjith Mohan
Ranch Hand

Joined: Nov 28, 2008
Posts: 65

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?

eshu khare
Ranch Hand

Joined: Aug 01, 2008
Posts: 44
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.

Thanks & Regards
Eshu Khare
I agree. Here's the link:
subject: iReports - HTML format in JSP
It's not a secret anymore!