How do we access values of a bean sent as parameter to Jasper Report? in Products Posted July 6, 2012 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.
How do we access values of a bean sent as parameter to Jasper Report?
in Products
Posted
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.
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.