Tutorial by Examples

GSP supports the usage of <% %> scriptlet blocks to embed Groovy code (this is discouraged): <html> <body> <% out << "Hello GSP!" %> </body> </html> You can also use the <%= %> syntax to output values, like in JSP: <htm...
In GSP the <%= %> syntax is rarely used due to the support for GSP expressions. A GSP expression is similar to a JSP EL expression or a Groovy GString and takes the form ${expr}: <html> <body> Hello ${params.name} </body> </html> However, unlike JSP EL ...
There are variety of gsp tags available which can be used to create forms, textfield, radio buttons, check boxes, if-else, for each etc. <g:if> <g:if test="${session.role == 'admin'}"> <%-- show administrative functions --%> </g:if> <g:else> <%-...

Page 1 of 1