Deprecated API

Deprecated Interfaces
javax.servlet.http.HttpSessionContext
          As of Java(tm) Servlet API 2.1 for security reasons, with no replacement. This interface will be removed in a future version of this API. 
 

Deprecated Methods
javax.servlet.http.HttpServletResponse.encodeRedirectUrl(String)
          Use encodeRedirectURL(String url) 
javax.servlet.http.HttpServletResponse.encodeUrl(String)
          Use encodeURL(String url) 
javax.servlet.http.HttpSessionContext.getIds()
          As of Java Servlet API 2.1 with no replacement. This method must return an empty enumeration 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, use ServletContext.getRealPath(java.lang.String) instead. 
javax.servlet.ServletContext.getServlet(String)
          As of Java Servlet API 2.1, with no replacement.

This method was originally defined to retrieve a servlet from a ServletContext. In this version, this method always returns null and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API. 

javax.servlet.ServletContext.getServletNames()
          As of Java Servlet API 2.1, with no replacement.

This method was originally defined to return an Enumeration of all the servlet names known to this context. In this version, this method always returns an empty Enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API. 

javax.servlet.ServletContext.getServlets()
          As of Java Servlet API 2.0, with no replacement.

This method was originally defined to return an Enumeration of all the servlets known to this servlet context. In this version, this method always returns an empty enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API. 

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.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.HttpServletRequest.isRequestedSessionIdFromUrl()
          As of Version 2.1 of the Java Servlet API, use HttpServletRequest.isRequestedSessionIdFromURL() instead. 
javax.servlet.ServletContext.log(Exception, String)
          As of Java Servlet API 2.1, use ServletContext.log(String message, Throwable throwable) instead.

This method was originally defined to write an exception's stack trace and an explanatory error message to the servlet log file. 

javax.servlet.http.HttpServletResponse.setStatus(int, String)
          ambiguous meaning. To send an error with a description page, use sendError(int sc, String msg);