org.apache.struts2.sitemesh
Class VelocityPageFilter

java.lang.Object
  extended by com.opensymphony.sitemesh.webapp.SiteMeshFilter
      extended by com.opensymphony.module.sitemesh.filter.PageFilter
          extended by org.apache.struts2.sitemesh.TemplatePageFilter
              extended by org.apache.struts2.sitemesh.VelocityPageFilter
All Implemented Interfaces:
javax.servlet.Filter

public class VelocityPageFilter
extends TemplatePageFilter

Applies Velocity-based decorators


Constructor Summary
VelocityPageFilter()
           
 
Method Summary
protected  void applyDecorator(com.opensymphony.module.sitemesh.Page page, com.opensymphony.module.sitemesh.Decorator decorator, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.ServletContext servletContext, com.opensymphony.xwork2.ActionContext ctx)
          Applies the decorator, using the relevent contexts
static void setVelocityManager(org.apache.struts2.views.velocity.VelocityManager mgr)
           
 
Methods inherited from class org.apache.struts2.sitemesh.TemplatePageFilter
applyDecorator, getEncoding, init, setCustomEncoding
 
Methods inherited from class com.opensymphony.sitemesh.webapp.SiteMeshFilter
destroy, doFilter, initContentProcessor, initDecoratorSelector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityPageFilter

public VelocityPageFilter()
Method Detail

setVelocityManager

public static void setVelocityManager(org.apache.struts2.views.velocity.VelocityManager mgr)

applyDecorator

protected void applyDecorator(com.opensymphony.module.sitemesh.Page page,
                              com.opensymphony.module.sitemesh.Decorator decorator,
                              javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse res,
                              javax.servlet.ServletContext servletContext,
                              com.opensymphony.xwork2.ActionContext ctx)
                       throws javax.servlet.ServletException,
                              java.io.IOException
Applies the decorator, using the relevent contexts

Specified by:
applyDecorator in class TemplatePageFilter
Parameters:
page - The page
decorator - The decorator
req - The servlet request
res - The servlet response
servletContext - The servlet context
ctx - The action context for this request, populated with the server state
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.