Deprecated API

Contents

Deprecated Interfaces

HttpSessionContext
As of Java(tm) Servlet API 2.1 for security reasons, with no replacement.

Deprecated Classes

HttpUtils
As of Java(tm) Servlet API 2.3.

Deprecated Fields

javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_TAG
As of Java JSP API 1.2, use BodyTag.EVAL_BODY_BUFFERED or IterationTag.EVAL_BODY_AGAIN.

Deprecated Methods

javax.servlet.http.HttpServletRequest.isRequestedSessionIdFromUrl()
As of Version 2.1 of the Java Servlet API, use isRequestedSessionIdFromURL() instead.
javax.servlet.http.HttpServletResponse.encodeUrl(java.lang.String)
As of version 2.1, use encodeURL(String url) instead
javax.servlet.http.HttpServletResponse.encodeRedirectUrl(java.lang.String)
As of version 2.1, use encodeRedirectURL(String url) instead
javax.servlet.http.HttpServletResponse.setStatus(int,java.lang.String)
As of version 2.1, due to ambiguous meaning of the message parameter.
javax.servlet.http.HttpSession.getSessionContext()
As of Version 2.1, this method is deprecated and has no replacement.
javax.servlet.http.HttpSession.getValue(java.lang.String)
As of Version 2.2, this method is replaced by getAttribute(java.lang.String).
javax.servlet.http.HttpSession.getValueNames()
As of Version 2.2, this method is replaced by getAttributeNames()
javax.servlet.http.HttpSession.putValue(java.lang.String,Object)
As of Version 2.2, this method is replaced by setAttribute(java.lang.String,Object)
javax.servlet.http.HttpSession.removeValue(java.lang.String)
As of Version 2.2, this method is replaced by removeAttribute(java.lang.String)
javax.servlet.http.HttpSessionContext.getSession(java.lang.String)
As of Java Servlet API 2.1 with no replacement.
javax.servlet.http.HttpSessionContext.getIds()
As of Java Servlet API 2.1 with no replacement.
javax.servlet.ServletContext.getServlet(java.lang.String)
As of Java Servlet API 2.1, with no direct replacement.
javax.servlet.ServletContext.getServlets()
As of Java Servlet API 2.0, with no replacement.
javax.servlet.ServletContext.getServletNames()
As of Java Servlet API 2.1, with no replacement.
javax.servlet.ServletContext.log(Exception,java.lang.String)
As of Java Servlet API 2.1, use
javax.servlet.ServletRequest.getRealPath(java.lang.String)
As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead.
javax.servlet.UnavailableException.getServlet()
As of Java Servlet API 2.2, with no replacement.

Deprecated Constructors

javax.servlet.UnavailableException.UnavailableException(Servlet,java.lang.String)
As of Java Servlet API 2.2, use UnavailableException(String) instead.
javax.servlet.UnavailableException.UnavailableException(int,Servlet,java.lang.String)
As of Java Servlet API 2.2, use UnavailableException(String, int) instead.