10.1.10.3 Using GSP to Customize Rendering 3.2.6

(Quick Reference) # 10.1.10.3 Using GSP to Customize Rendering Version: 3.2.6 ## 10.1.10.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)