Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to embed jasper report in jsp page when using struts2-jasperreports-plugin

Sewdil Ss
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm creating a report using jasper report and successfully generated the report with struts2-jasperreports-plugin, in my web application.
the report is displayed in html format, now i need to embed this report in a jsp page, but couldn't find a way to do that. Could some one please help me to achieve this task?
following is the struts configuration i have used:

<action name="myJasperTest" class="com.action.JasperAction" method="execute">
<result name="success" type="jasper">
<param name="location">jasper\report4.jasper</param>
<param name="dataSource">myList</param>
<param name="format">HTML</param>
<param name="imageServletUrl">/servlets/image?image=</param>

Thanks in advance...!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic