• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 - JasperReport problem

 
jim paolo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
btw, this is the output:
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are getting result null but you defined it was success in action class try to debug how it is setting null.
 
jim paolo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic