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

how to pass dynamic parameters created by user using jsp form page from java to jasper reports


eshwarkoti

Recommended Posts

 Hi All

Iam working with Struts , Ejb and Jasper reports. i need to generate reports by mapping user created filter parameters.

How to pass more number of dynamic parameters to jasper reports through java. These parameters can create by user . so the user can add any number of parameters through jsp form page. how to pass these user created dynamic filter parameters from java to jasper reports. 

 

 

Thanks

Eshwar.



Post Edited by eshwarkoti at 06/06/2011 09:21
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

You can use two lists (use java.util.List).

 

The first list contains the names of the parameters.

 

The second list contains the values of the parameters.

 

See also the Report Integration Framework that illustrates how to pass these parameters generically.

 

http://www.whitemagicsoftware.com/software/java/rif/

 

--

 

Read chapter 15 of Indispensable, a book on JasperReports, available at:

 

http://www.whitemagicsoftware.com/books/indispensable/

Link to comment
Share on other sites

Hi thangalin .. Thank you for your reply

Iam little bit confusing about this. Can you please send me sample code.

Actually i need to iterate the all parameter fields which are dynamically created by user  from jsp (but those parameters are not configured in ireports) through ejb service bean to jasper reports.

 

Thanks

Eshwar

 



Post Edited by eshwarkoti at 06/10/2011 11:28
Link to comment
Share on other sites

  • 5 years later...

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...