aspose file tools*
The moose likes Struts and the fly likes Struts 2 - JasperReport problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - JasperReport problem" Watch "Struts 2 - JasperReport problem" New topic
Author

Struts 2 - JasperReport problem

jim paolo
Greenhorn

Joined: Feb 15, 2012
Posts: 5
Hello guys! im new to this forum. I just wanted to know how can i display my pdf file into the browser?? I dont want to use the struts 2 jasper-report plugin. anyway, i can create a pdf in an standa-alone application (using static void main()) here's my current code:

and this is my struts.xml file:

and im using iReport to generate my jrxml file. Thanks!
jim paolo
Greenhorn

Joined: Feb 15, 2012
Posts: 5
btw, this is the output:
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

You are getting result null but you defined it was success in action class try to debug how it is setting null.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
jim paolo
Greenhorn

Joined: Feb 15, 2012
Posts: 5
thanks mohan, i just resolved this problem i while ago. but now i want ti try the struts 2 jasperreport plugin. but the datasource only accepts generics/collections classes. how can i stablish a connections to jasper?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 - JasperReport problem