public class GroovyPagesServlet extends FrameworkServlet
NOTE: Based on work done by on the GSP standalone project (https://gsp.dev.java.net/) Main servlet class. Example usage in web.xml:
<servlet>
<servlet-name>GroovyPagesServlet</servlet-name>
<servlet-class>GroovyPagesServlet</servlet-class>
<init-param>
<param-name>showSource</param-name>
<param-value>1</param-value>
<description>
Allows developers to view the intermediade source code, when they pass
a showSource argument in the URL (eg /edit/list?showSource=true.
</description>
</init-param>
</servlet>
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
SERVLET_INSTANCE |
The size of the buffer used when formulating the response |
Type | Name and description |
---|---|
GroovyPagesTemplateEngine |
groovyPagesTemplateEngine |
Constructor and description |
---|
GroovyPagesServlet
() |
The size of the buffer used when formulating the response
Creates a response writer for the given response object
response
- The HttpServletResponseAttempts to render the page with the given arguments
engine
- The GroovyPagesTemplateEngine to userequest
- The HttpServletRequestresponse
- The HttpServletResponsescriptSource
- The template