org.apache.struts2.sitemesh
Class VelocityPageFilter
java.lang.Object
com.opensymphony.module.sitemesh.filter.PageFilter
org.apache.struts2.sitemesh.TemplatePageFilter
org.apache.struts2.sitemesh.VelocityPageFilter
- All Implemented Interfaces:
- com.opensymphony.module.sitemesh.RequestConstants, javax.servlet.Filter
public class VelocityPageFilter
- extends TemplatePageFilter
Applies Velocity-based decorators
Fields inherited from interface com.opensymphony.module.sitemesh.RequestConstants |
DECORATOR, FILTER_APPLIED, PAGE, ROBOT, USING_STREAM |
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 |
Methods inherited from class com.opensymphony.module.sitemesh.filter.PageFilter |
destroy, doFilter, getFilterConfig, parsePage, setFilterConfig |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityPageFilter
public VelocityPageFilter()
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 pagedecorator
- The decoratorreq
- The servlet requestres
- The servlet responseservletContext
- The servlet contextctx
- The action context for this request, populated with the server state
- Throws:
javax.servlet.ServletException
java.io.IOException
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.