Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

input to ireport

 
Saranya Sivakumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


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
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone please help me in solving this?
thanks

 
Tariq Rafique
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic