Learn Java for Web Development

(Tina Meador) #1

316 CHAPTER 7: Rapid Web Development with Grails


Modify the code of index(){}, as illustrated in Listing 7-4.


Listing 7-4. Modifying the Index Action


def index() {
render "book list"
}


Now you can click the BookController link in Figure 7-14, and you will get the simple textual
response illustrated in Figure 7-15.


Figure 7-14. Welcome screen of the bookstore application

Free download pdf