Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic Jasper + struts 2

 
Renz Alexander
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi I've been having problems with my setup of dynamic Jasper plugin with struts. i've been getting this error



i don't know why but i followed the intstructions in the site. can any one help me thanks

[edit] so i've finally got this thing working.

this is basically a patch that allows the plugin to work work with struts 2.1.8 and xwork-core-2.1.6

so for the steps:

1. Edit the source code of the plugin. change the instance of the at around line 310 to

don 't forget to remove the import statement of the previous code

2. add the needed the jars implied by the import statement
remember servelet-api.jar can be found in the tomcat lib folder

3. now compile the whole thing.

4. after adding the jar file to your project download remember to get a copy of itext 2.1.7(specifically if an error occured concerning com/lowagie/text/DocumentException) and not itext 5.x.x as they have changed the namespace from com.lowagie to com.itextpdf.

* Another error might occur concerning beanutil so get the commons-beanutils jar.
* Also don't forget to assign the proper type to the item you're printing.

there you go now just follow the example from their site and you've got yourself a working dynamic jasper report plugin

[edit 2]

so their seems to be another problem and now i can only print out pdf file. i'll update when i get it fixed

[edit 3]

my bad it was supposed to be isNotEmpty no isEmpty
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Move to Struts.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this is a bug in the JasperReports plugin it would probably be more helpful to file a ticket against it in the Struts 2 JIRA.
 
Renz Alexander
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the move. the plugin isn't a jaspererport plugin it's a dynamic jasper plugin.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh; I have no idea what that is--it probably would have been better to ask the creators of the plugin directly if it's not part of Struts itself.
 
Renz Alexander
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's a plugin that allows struts to create jasper reports dynamically with out the jasper report xml file. i actually posted in their forums but no one seems to be there. the reason i placed this post in the other sub-forum is because i thought the error was more related to my configuration with Dynamic jasper Report than with struts 2 and i didn't expect that the plugin has a compatibility issue with the latest version of struts 2. thanks for the reply again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic