10.11.3 Using GSP to Customize Rendering 6.0.0

(Quick Reference) # 10.11.3 Using GSP to Customize Rendering Version: 6.0.0 ## 10.11.3 Using GSP to Customize Rendering You can also customize rendering on a per action basis using Groovy Server Pages (GSP). For example given the `show` action mentioned previously:
    def show(Book book) {
        respond book
    }
You could supply a `show.xml.gsp` file to customize the rendering of the XML:
    <%@page contentType="application/xml"%>
    <book id="${book.id}" title="${book.title}"/>
| Quick Reference (hide)