org.apache.struts2.dispatcher
类 ActionContextCleanUp
java.lang.Object
org.apache.struts2.dispatcher.ActionContextCleanUp
- 所有已实现的接口:
- javax.servlet.Filter
已过时。 Since Struts 2.1.3, use StrutsPrepareFilter and
StrutsExecuteFilter to use other Servlet filters that need access to
the ActionContext
public class ActionContextCleanUp
- extends Object
- implements javax.servlet.Filter
Special filter designed to work with the FilterDispatcher and allow
for easier integration with SiteMesh. Normally, ordering your filters to have
SiteMesh go first, and then FilterDispatcher go second is perfectly fine.
However, sometimes you may wish to access Struts features, including the
value stack, from within your SiteMesh decorators. Because FilterDispatcher
cleans up the ActionContext, your decorator won't have access to the
data you want.
By adding this filter, the FilterDispatcher will know to not clean up and
instead defer cleanup to this filter. The ordering of the filters should then be:
- 版本:
- $Date$ $Id$
- 另请参见:
FilterDispatcher,
Dispatcher,
StrutsPrepareFilter,
StrutsExecuteFilter
|
方法摘要 |
void |
destroy()
已过时。 |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
已过时。 |
void |
init(javax.servlet.FilterConfig arg0)
已过时。 |
ActionContextCleanUp
public ActionContextCleanUp()
- 已过时。
doFilter
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- 已过时。
- 指定者:
- 接口
javax.servlet.Filter 中的 doFilter
- 抛出:
IOException
javax.servlet.ServletException- 另请参见:
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
destroy
public void destroy()
- 已过时。
- 指定者:
- 接口
javax.servlet.Filter 中的 destroy
init
public void init(javax.servlet.FilterConfig arg0)
throws javax.servlet.ServletException
- 已过时。
- 指定者:
- 接口
javax.servlet.Filter 中的 init
- 抛出:
javax.servlet.ServletException