-
Methods Method Description javax.servlet.http.HttpServletResponse.setStatus(int, String) As of version 2.1, due to ambiguous meaning of the message parameter. To set a status code usesetStatus(int), to send an error with a description usesendError(int, String). Sets the status code and message for this response.javax.servlet.http.HttpSession.getSessionContext() As of Version 2.1, this method is deprecated and has no replacement. It will be removed in a future version of the Java Servlet API.javax.servlet.http.HttpSession.getValue(String) As of Version 2.2, this method is replaced byHttpSession.getAttribute(java.lang.String).javax.servlet.http.HttpSession.getValueNames() As of Version 2.2, this method is replaced byHttpSession.getAttributeNames()javax.servlet.http.HttpSession.putValue(String, Object) As of Version 2.2, this method is replaced byHttpSession.setAttribute(java.lang.String, java.lang.Object)javax.servlet.http.HttpSession.removeValue(String) As of Version 2.2, this method is replaced byHttpSession.removeAttribute(java.lang.String)javax.servlet.http.HttpSessionContext.getSession(String) As of Java Servlet API 2.1 with no replacement. This method must return null and will be removed in a future version of this API.javax.servlet.ServletRequest.getRealPath(String) As of Version 2.1 of the Java Servlet API, useServletContext.getRealPath(java.lang.String)instead.