Java Reference
In-Depth Information
<url-pattern>*.groovy</url-pattern>
</servlet-mapping>
The Groovy Baseball application will therefore send all URLs ending in .groovy through
the GroovyServlet , which will execute them. Groovlets executed this way are de-
ployed as source code rather than as compiled classes under WEB-INF. [ 13 ] Groovlets also
contain a set of implicit objects representing the request, response, input parameters, and
more.
13 The details are discussed in chapter 10 on web applications.
The following listing contains the complete content of the groovlet that drives the Groovy
Baseball system.
Listing 2.10. GameServlet.groovy : a groovlet for Groovy Baseball
 
Search WWH ::




Custom Search