Search code examples
grailsgsp

Getting data into a GSP


I have a template that is rendered inside another GSP. I can't seem to find a way to populate the data into it. It is a generate show page of my students class/controller. So the student controller should process the 'show' function, however it is never getting into that function. Is there a way to get the data from the student table and populate the studentInstance.id, studentInstance.Name, etc?

Additionally, are there any good books/ websites that really explain GSP. I can't find any that have really good references to the more complex actions.

Thanks


Solution

  • You can find all the information you need about Controllers, GSPs and templates in the Grails user guide, more specifically in the Web Layer section.