New to Grails and this may be simple problem.
I am trying to save some values to database, so I created a simple form with two text fields and a button in GSP (info.gsp). When button (update) is pressed it calls method update() on the controller & saves the change. Good till here.
And I want to show “saved ” on the same gsp (info.gsp) with the saved new values. render takes me to a new page.
Please help how to do it.
thanks
Sana
On the action that is saving your object render the value you want to display for example
and on your view update a placeholder using its ID. In my example, submitToRemote has a update attribute that will take care of it. Hope this code helps