forked from I2P_Developers/i2p.i2p
* Jetty:
- Update to Jetty 8.x, Servlet 3.0, JSP 2.2 - Require Java 6 - Use Servlet and JSP jars from Jetty instead of Tomcat - Tomcat remains at 6.0.37 supporting Servlet 2.5 / JSP 2.1 - Remove Jetty dependency in console error pages - Build files for Jetty 8.1.14 - Doc updates - Delete Jetty 7.6.14 - Jetty 8.1.14 not yet checked in, waiting to see if a new version is released soon, but build will download it for testing
This commit is contained in:
@@ -4,9 +4,12 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<%
|
||||
// Let's make this easy...
|
||||
final Integer ERROR_CODE = (Integer) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_STATUS_CODE);
|
||||
final String ERROR_URI = (String) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_REQUEST_URI);
|
||||
final String ERROR_MESSAGE = (String) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_MESSAGE);
|
||||
// These are defined in Jetty 7 org.eclipse.jetty.server.Dispatcher,
|
||||
// and in Servlet 3.0 (Jetty 8) javax.servlet.RequestDispatcher,
|
||||
// just use the actual strings here to make it compatible with either
|
||||
final Integer ERROR_CODE = (Integer) request.getAttribute("javax.servlet.error.status_code");
|
||||
final String ERROR_URI = (String) request.getAttribute("javax.servlet.error.request_uri");
|
||||
final String ERROR_MESSAGE = (String) request.getAttribute("javax.servlet.error.message");
|
||||
if (ERROR_CODE != null && ERROR_MESSAGE != null) {
|
||||
// this is deprecated but we don't want sendError()
|
||||
response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE);
|
||||
|
Reference in New Issue
Block a user