Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

iReports - HTML format in JSP

 
Ranch Hand
Posts: 65
Android Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic