Jump to content
Changes to the Jaspersoft community edition download ×

shravanthit

Members
  • Posts

    1
  • Joined

  • Last visited

shravanthit's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hello all, I just started experimenting with Jasper for a project requirement and stuck on the below issue. How do we access values of a bean sent as parameter to Jasper Report? I have to display the data of a model (which is not a collection) in Jasper Report. I pass the model to the Jasper Report in parameters in a Map. Map<String,Object> params = new HashMap<String,Object>(); params.put("object", object); [/code]Now this object has fields whose data I need to display in the Jasper report header section. like in jsp we do ${object.name}, ${object.phone} etc., how do we achieve this in Jasper Report. I tried doing $P{object.name} but it doesn't work. Can anyone please let me know how to achieve this. Thanks in advance. Laxmi.
×
×
  • Create New...