
|
If you were logged in you would be able to see more operations.
|
|
|
|
in the com.opensymphony.webwork.dispatcher.ActionContextCleanUp atribute is always false.
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
try {
req.setAttribute(CLEANUP_PRESENT, Boolean.TRUE);
chain.doFilter(req, res);
} finally {
req.setAttribute(CLEANUP_PRESENT, Boolean.FALSE); // always executed
cleanUp(req);
}
}
Always cleanup
protected static void cleanUp(ServletRequest req) {
// should we clean up yet?
Boolean dontClean = (Boolean) req.getAttribute(CLEANUP_PRESENT);
if (dontClean != null && dontClean.booleanValue()) {
return;
}
|
|
Description
|
in the com.opensymphony.webwork.dispatcher.ActionContextCleanUp atribute is always false.
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
try {
req.setAttribute(CLEANUP_PRESENT, Boolean.TRUE);
chain.doFilter(req, res);
} finally {
req.setAttribute(CLEANUP_PRESENT, Boolean.FALSE); // always executed
cleanUp(req);
}
}
Always cleanup
protected static void cleanUp(ServletRequest req) {
// should we clean up yet?
Boolean dontClean = (Boolean) req.getAttribute(CLEANUP_PRESENT);
if (dontClean != null && dontClean.booleanValue()) {
return;
} |
Show » |
|