
|
If you were logged in you would be able to see more operations.
|
|
|
WebWork
Created: 30/Dec/05 10:39 AM
Updated: 07/Jan/06 03:52 PM
|
|
| Component/s: |
Dispatch
|
| Affects Version/s: |
2.2
|
| Fix Version/s: |
2.2
|
|
|
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 » |
|