KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > presentation > velocity > PreviewServlet


1
2 package org.roller.presentation.velocity;
3
4 import org.apache.velocity.Template;
5 import org.apache.velocity.context.Context;
6
7 import javax.servlet.http.HttpServletRequest JavaDoc;
8 import javax.servlet.http.HttpServletResponse JavaDoc;
9
10 /**
11  * Extend RollerServlet to load proper resource loader for page execution.
12  *
13  * @web.servlet name="PreviewServlet" load-on-startup="1"
14  * @web.servlet-init-param name="properties" value="/WEB-INF/velocity.properties"
15  * @web.servlet-mapping url-pattern="/preview/*"
16  */

17 public class PreviewServlet extends BasePageServlet
18 {
19     public Template handleRequest( HttpServletRequest JavaDoc request,
20                                     HttpServletResponse JavaDoc response,
21                                     Context ctx ) throws Exception JavaDoc
22     {
23         return super.handleRequest(request, response, ctx);
24     }
25 }
26
27
Popular Tags