|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.velocity.servlet.VelocityServlet
org.appfuse.webapp.velocity.PageServlet
Extend VelocityServlet to load proper resource loader for page execution.
| Field Summary |
| Fields inherited from class org.apache.velocity.servlet.VelocityServlet |
CONTENT_TYPE, DEFAULT_CONTENT_TYPE, DEFAULT_OUTPUT_ENCODING, INIT_PROPS_KEY, REQUEST, RESPONSE |
| Constructor Summary | |
PageServlet()
|
|
| Method Summary | |
protected void |
error(HttpServletRequest req,
HttpServletResponse res,
Exception e)
Handle error in Velocity processing. |
org.apache.velocity.Template |
getTemplate(String name)
Override the parent getTemplate( String name ) method. |
org.apache.velocity.Template |
getTemplate(String name,
String encoding)
Override the parent getTemplate(String name, String encoding) method. |
org.apache.velocity.Template |
handleRequest(HttpServletRequest request,
HttpServletResponse response,
org.apache.velocity.context.Context ctx)
|
void |
init(ServletConfig config)
Sets servletContext for WebappResourceLoader. |
protected void |
initVelocity(ServletConfig config)
Override initVelocity() so we can man-handle the list of resource loaders |
| Methods inherited from class org.apache.velocity.servlet.VelocityServlet |
chooseCharacterEncoding, createContext, doGet, doPost, doRequest, handleRequest, loadConfiguration, mergeTemplate, requestCleanup, setContentType |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PageServlet()
| Method Detail |
public void init(ServletConfig config)
throws ServletException
Sets servletContext for WebappResourceLoader.
config - servlet configuation
ServletException
public org.apache.velocity.Template handleRequest(HttpServletRequest request,
HttpServletResponse response,
org.apache.velocity.context.Context ctx)
protected void error(HttpServletRequest req,
HttpServletResponse res,
Exception e)
throws ServletException,
IOException
ServletException
IOException
protected void initVelocity(ServletConfig config)
throws ServletException
ServletExceptionVelocityServlet.initVelocity(ServletConfig)
public org.apache.velocity.Template getTemplate(String name)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
Exception
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
ExceptionVelocityServlet.getTemplate(String, String)
public org.apache.velocity.Template getTemplate(String name,
String encoding)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
Exception
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
ExceptionVelocityServlet.getTemplate(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||