Removed Servlet 2.4 forward attribute support in InternalResourceView and TilesView
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -428,27 +428,6 @@ public abstract class WebUtils {
|
||||
return (request.getAttribute(INCLUDE_REQUEST_URI_ATTRIBUTE) != null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose the current request URI and paths as {@link javax.servlet.http.HttpServletRequest}
|
||||
* attributes under the keys defined in the Servlet 2.4 specification,
|
||||
* for containers that implement 2.3 or an earlier version of the Servlet API:
|
||||
* {@code javax.servlet.forward.request_uri},
|
||||
* {@code javax.servlet.forward.context_path},
|
||||
* {@code javax.servlet.forward.servlet_path},
|
||||
* {@code javax.servlet.forward.path_info},
|
||||
* {@code javax.servlet.forward.query_string}.
|
||||
* <p>Does not override values if already present, to not cause conflicts
|
||||
* with the attributes exposed by Servlet 2.4+ containers themselves.
|
||||
* @param request current servlet request
|
||||
*/
|
||||
public static void exposeForwardRequestAttributes(HttpServletRequest request) {
|
||||
exposeRequestAttributeIfNotPresent(request, FORWARD_REQUEST_URI_ATTRIBUTE, request.getRequestURI());
|
||||
exposeRequestAttributeIfNotPresent(request, FORWARD_CONTEXT_PATH_ATTRIBUTE, request.getContextPath());
|
||||
exposeRequestAttributeIfNotPresent(request, FORWARD_SERVLET_PATH_ATTRIBUTE, request.getServletPath());
|
||||
exposeRequestAttributeIfNotPresent(request, FORWARD_PATH_INFO_ATTRIBUTE, request.getPathInfo());
|
||||
exposeRequestAttributeIfNotPresent(request, FORWARD_QUERY_STRING_ATTRIBUTE, request.getQueryString());
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose the Servlet spec's error attributes as {@link javax.servlet.http.HttpServletRequest}
|
||||
* attributes under the keys defined in the Servlet 2.3 specification, for error pages that
|
||||
|
||||
Reference in New Issue
Block a user