This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes input to ireport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "input to ireport" Watch "input to ireport" New topic

input to ireport

Saranya Sivakumar

Joined: Aug 09, 2010
Posts: 13

I get the input from a web application (written in jsp) as parameter in sevlets.
Now how can i pass it to ireport(xml) as a query.

Saranya Sivakumar

Joined: Aug 09, 2010
Posts: 13
can anyone please help me in solving this?

Tariq Rafique

Joined: Jul 21, 2010
Posts: 9
Simply use Map class instance named parameters you already defined in your code as following:

"Day" and "Month" strings in above code represents parameter names in your report. The parameter name string should match to name of your report parameter.

You are already passing the parameters object to JasperFillManager.fillReport() method

that's it. It will solve your problem.

Knowledge is a treasure and Question is its key
subject: input to ireport
It's not a secret anymore!