| java.lang.Object org.apache.struts2.dispatcher.ActionContextCleanUp
ActionContextCleanUp | public class ActionContextCleanUp implements Filter(Code) | |
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:
See Also: FilterDispatcher See Also: AbstractFilter See Also: Dispatcher version: $Date: 2006-12-08 14:57:59 -0500 (Fri, 08 Dec 2006) $ $Id: ActionContextCleanUp.java 484717 2006-12-08 19:57:59Z mrdon $ |
cleanUp | protected static void cleanUp(ServletRequest req)(Code) | | Clean up the request of threadlocals if this is the last execution
Parameters: req - The servlet request |
destroy | public void destroy()(Code) | | |
|
|