In the controller I have which is having two values say name
and amount
.
In the controller I wrote
def d=[name:amount]
render (view: "/user.gsp", model: [user: d])
and in the view
${user}
This is giving the output as {name=amount}
. But I want something like "My name and my amount".
How do I achieve that?
try this...
in controller
then you receive the params like this.
if you want to call that
key
andvalue
in a record, i suggest you to change your code like this..then you can call like this in view