private final static ThreadLocal<ServletResponse> lastServicedResponse;
static {
- if (Globals.STRICT_SERVLET_COMPLIANCE) {
+ if (ApplicationDispatcher.WRAP_SAME_OBJECT) {
lastServicedRequest = new ThreadLocal<ServletRequest>();
lastServicedResponse = new ThreadLocal<ServletResponse>();
} else {
// We fell off the end of the chain -- call the servlet instance
try {
- if (Globals.STRICT_SERVLET_COMPLIANCE) {
+ if (ApplicationDispatcher.WRAP_SAME_OBJECT) {
lastServicedRequest.set(request);
lastServicedResponse.set(response);
}
throw new ServletException
(sm.getString("filterChain.servlet"), e);
} finally {
- if (Globals.STRICT_SERVLET_COMPLIANCE) {
+ if (ApplicationDispatcher.WRAP_SAME_OBJECT) {
lastServicedRequest.set(null);
lastServicedResponse.set(null);
}