(Quick Reference)

servlets

Purpose

The servlets plugin enhances Servlet API classes with new methods

Examples

Allows attributes from the request, session, and servletContext to be be accessed with the de-reference operator:

class BookController {
    def find() {
        def findBy = params.findBy
        def foo = request.foo
        def loggedUser = session.logged_user
        …
    }
}