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:
<html>
<body>
<%="Hello GSP!" %>
</body>
</html>
GSP also supports JSP-style server-side comments too:
<html>
<body>
<%-- This is my comment --%>
<%="Hello GSP!" %>
</body>
</html>