cancel
Showing results for 
Search instead for 
Did you mean: 

CrystalReportViewer and Struts Action

Former Member
0 Kudos

I am trying to integrate crystal reports with a struts application. I can get the CrystalReportViewer to display a crystal report using the processHTTPRequest method. The problem is that once the page is displayed if I click any of the buttons such as the "Export" or the "Print" buttons the javascript function "CrystalViewerCrystalEvent" function submits the form to the .jsp page. How can I get it to submit the form to a Struts action instead of the jsp? Or more to the point, how can I get the CrystalViewer to function properly in a Struts application?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You can set the jsp form's action attribute to your corresponding StructACtion class using javascript. This will solve the problem.

I too have a problem while exporting the reason because i have Struts-TILES integrated in the JSP i use to show the crystal report. Any body know how to reolve it.

when i click on export i get the dialog to choose the type of export wheni select it and try to export i get a grey bar with just ERROR . its not showing what is the exacty error??

Regards,

Prem

Former Member
0 Kudos

I will answer my own question in case someone else runs into this problem. IÂ was able to work around the problem by setting the PageViewer URI property:Â Â

 crystalReportPageViewer.setURI("myAction.do");

 You need to set the property before calling the processHttpRequest method.

Former Member
0 Kudos

<p>Thank u very much for your reply.</p><p>We were also facing the same problem with Spring. </p>

Former Member
0 Kudos

I'm facing problem with the same regards...Came across your solution but i have problems yet.can i have some help.