aspose file tools*
The moose likes Struts and the fly likes How to embed jasper report in jsp page when using struts2-jasperreports-plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to embed jasper report in jsp page when using struts2-jasperreports-plugin" Watch "How to embed jasper report in jsp page when using struts2-jasperreports-plugin" New topic
Author

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

Sewdil Ss
Greenhorn

Joined: Mar 28, 2011
Posts: 1
Hi

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>
</result>
</action>

Thanks in advance...!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to embed jasper report in jsp page when using struts2-jasperreports-plugin