my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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...!
 
 
subject: How to embed jasper report in jsp page when using struts2-jasperreports-plugin
 
Similar Threads
Problem in struts2-jasperreports
datasource for jasper report in struts.xml with struts2
Problem in using "exportParameters" in struts2
jasper reports html format not displayed inspite of doing all the changes mentioned in similar post
WebWork JasperReports Plugin set multiple datasourc