Jump to content
We've recently updated our Privacy Statement, available here ×

Specifying the datasource param in Struts2


godbole

Recommended Posts

Hello,

I'm new to Jasper Reports and have the following two questions:

1. I created a report template that is using an Oracle database to retrieve data. Now I want to plug in this report into a existing webapp using the Struts2 plugin. The webapp uses JDBC to connect to the database. I'm not able to figure out what value to use for the datasource param in the struts.xml (<param name="dataSource">???</param>) so that when I click on view report on the GUI, the compiled report template from the location param would be called and the data from the Oracle database given in the datasource param would be used to generate the report.

2.  I'm trying to pass date as a parameter to the report. Can you pass dynamic parameters to compiled report templates (.jasper)? I think you can but I'm not sure.

Please help!

Many Thanks!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...