Returned paths are all relative to the root of the web application and Paths indicating subdirectory paths end with a '/'. Web application whose longest sub-path matches the supplied pathĪrgument. Parameters or reading input using getReader().Returns a directory-like listing of all the paths to resources within the This method must be called prior to reading request Overrides the name of the character encoding used in the body of Path, which may be interpreted as relative to the current request path. Specified by: getRequestDispatcher in interface ServletRequest Parameters: path - Path of the resource to be wrapped Returns: a RequestDispatcher that wraps the resource at the specified ServletContext.getRequestDispatcher() is that this method can takeĪ relative path. Null if the servlet container cannot return a Interpreted as relative to the current context root. The pathname specified may be relative, although it cannot extend outside Object can be used to forward a request to the resource or to include the Returns a RequestDispatcher object that acts as a wrapper for the getParameterMap public Map getParameterMap().See Also: ServletRequest.getParameterValues() Specified by: getParameter in interface ServletRequest Parameters: name - Name of the desired request parameter Returns: the value of the specified request parameter, if any otherwise, ServletRequest.getInputStream() or ServletRequest.getReader() can interfere with theĮxecution of this method. If the parameter data was sent in the request body, such as occurs withĪn HTTP POST request, then reading the body directly via Is equal to the first value in the array returned by If you use this method with a multivalued parameter, the value returned
If the parameter might have more than one value, use You should only use this method when you are sure the parameter has only For HTTP servlets, parametersĪre contained in the query string or posted form data. Request parameters areĮxtra information sent with the request. Returns the value of a request parameter as a String, or getCharacterEncoding public String getCharacterEncoding().
Specified by: getAttributeNames in interface ServletRequest Returns: the attribute names enumeration Have names starting with "" and include:Ĭonnector implementations may return some, all or none of theseĪttributes and may also support additional attributes. The underlying connector may also expose request attributes.