Jump to content

How to set-up data source (which) ?


mikij

Recommended Posts

 Hi,

 

I need to pass from my S2-baed web application List of some Java objects to Jasper report, so that this report use that list for data source. I want to call this list to fill from my web application Java class and then to call JR.fillReport(...). Like shown here: http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html. Which data source should I use in iReport and how to set-up such data source ?

 

--

Thx, Miki

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

 My qustion is actually very simple, in Struts 2 there is JasperReportsResult.java class which is used to produce JasperReport in following way JasperFillManager.fillReport(JasperRerpot, Map, JRDataSource), where JRDataSource is in Struts 2 implemented with ValueStackDataSource. I just need to pass my data (List) to ValueStackDataSource constructor and that's it! 

But, what I don't know, how to set-up this datasource in iReport for my report ?

 

--

Thx, M.

Link to comment
Share on other sites

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