8.2.1.3 Page Directives 3.2.3

(Quick Reference) # 8.2.1.3 Page Directives Version: 3.2.3 ## 8.2.1.3 Page Directives GSP also supports a few JSP-style page directives. The import directive lets you import classes into the page. However, it is rarely needed due to Groovy’s default imports and GSP Tags:
    <%@ page import="java.awt.*" %>
GSP also supports the contentType directive:
    <%@ page contentType="application/json" %>
The contentType directive allows using GSP to render other formats. | Quick Reference (hide)