Lines 320-332
Link Here
|
320 |
ErrorPage errorPage = context.findErrorPage(statusCode); |
320 |
ErrorPage errorPage = context.findErrorPage(statusCode); |
321 |
if (errorPage != null) { |
321 |
if (errorPage != null) { |
322 |
response.setAppCommitted(false); |
322 |
response.setAppCommitted(false); |
323 |
request.setAttribute(Globals.STATUS_CODE_ATTR, |
323 |
/*request.setAttribute(Globals.STATUS_CODE_ATTR, |
324 |
new Integer(statusCode)); |
324 |
new Integer(statusCode)); |
325 |
|
325 |
|
326 |
String message = RequestUtil.filter(response.getMessage()); |
326 |
String message = RequestUtil.filter(response.getMessage()); |
327 |
if (message == null) |
327 |
if (message == null) |
328 |
message = ""; |
328 |
message = ""; |
329 |
request.setAttribute(Globals.ERROR_MESSAGE_ATTR, message); |
329 |
request.setAttribute(Globals.ERROR_MESSAGE_ATTR, message);*/ |
330 |
request.setAttribute |
330 |
request.setAttribute |
331 |
(ApplicationFilterFactory.DISPATCHER_REQUEST_PATH_ATTR, |
331 |
(ApplicationFilterFactory.DISPATCHER_REQUEST_PATH_ATTR, |
332 |
errorPage.getLocation()); |
332 |
errorPage.getLocation()); |
Lines 409-420
Link Here
|
409 |
// Reset the response if possible (else IllegalStateException) |
409 |
// Reset the response if possible (else IllegalStateException) |
410 |
//hres.reset(); |
410 |
//hres.reset(); |
411 |
// Reset the response (keeping the real error code and message) |
411 |
// Reset the response (keeping the real error code and message) |
412 |
Integer statusCodeObj = |
412 |
/*Integer statusCodeObj = |
413 |
(Integer) request.getAttribute(Globals.STATUS_CODE_ATTR); |
413 |
(Integer) request.getAttribute(Globals.STATUS_CODE_ATTR); |
414 |
int statusCode = statusCodeObj.intValue(); |
414 |
int statusCode = statusCodeObj.intValue(); |
415 |
String message = |
415 |
String message = |
416 |
(String) request.getAttribute(Globals.ERROR_MESSAGE_ATTR); |
416 |
(String) request.getAttribute(Globals.ERROR_MESSAGE_ATTR); |
417 |
response.reset(statusCode, message); |
417 |
response.reset(statusCode, message);*/ |
|
|
418 |
response.resetBuffer(); |
418 |
|
419 |
|
419 |
// Forward control to the specified location |
420 |
// Forward control to the specified location |
420 |
ServletContext servletContext = |
421 |
ServletContext servletContext = |