Skip to content Skip to sidebar Skip to footer

Passing Values From A Controller To A Gsp - To A Javascript Function

When we need to pass some values from Controller to a view we use to send it through model. In Controller render(view : 'projectView', model:[p:project]); In GSP &

Solution 1:

You need to enclose ${p} in quotes, like "${p}", if it is not a String in JSON format.


Post a Comment for "Passing Values From A Controller To A Gsp - To A Javascript Function"