Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help
SEARCH

Deprecated API

Contents

  • Interfaces
  • Classes
  • Exception Classes
  • Fields
  • Methods
  • Constructors
  • Deprecated Interfaces
    Interface
    Description
    jakarta.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.
    jakarta.servlet.jsp.el.FunctionMapper
    As of JSP 2.1, replaced by jakarta.el.FunctionMapper
    jakarta.servlet.jsp.el.VariableResolver
    As of JSP 2.1, replaced by jakarta.el.ELResolver
    jakarta.servlet.SingleThreadModel
    As of Java Servlet API 2.4, with no direct replacement.
  • Deprecated Classes
    Class
    Description
    jakarta.servlet.http.HttpUtils
    As of Java(tm) Servlet API 2.3. These methods were only useful with the default encoding and have been moved to the request interfaces.
    jakarta.servlet.jsp.el.Expression
    As of JSP 2.1, replaced by jakarta.el.ValueExpression
    jakarta.servlet.jsp.el.ExpressionEvaluator
    As of JSP 2.1, replaced by jakarta.el.ExpressionFactory
    org.apache.jasper.el.ELResolverImpl
    org.apache.jasper.el.ExpressionEvaluatorImpl
    org.apache.jasper.el.ExpressionImpl
    org.apache.jasper.el.FunctionMapperImpl
    org.apache.jasper.el.VariableResolverImpl
  • Deprecated Exception Classes
    Exception Class
    Description
    jakarta.servlet.jsp.el.ELException
    As of JSP 2.1, replaced by jakarta.el.ELException
    jakarta.servlet.jsp.el.ELParseException
    As of JSP 2.1, replaced by jakarta.el.ELException
  • Deprecated Fields
    Field
    Description
    jakarta.servlet.jsp.tagext.BodyTag.EVAL_BODY_TAG
    As of Java JSP API 1.2, use BodyTag.EVAL_BODY_BUFFERED or IterationTag.EVAL_BODY_AGAIN.
    org.apache.jasper.Constants.IE_PLUGIN_URL
    org.apache.jasper.Constants.NS_PLUGIN_URL
    Will be removed in Tomcat 10.1 onwards
    org.apache.jasper.JspC.DEFAULT_IE_CLASS_ID
  • Deprecated Methods
    Method
    Description
    jakarta.el.MethodExpression.isParmetersProvided()
    Use MethodExpression.isParametersProvided()
    jakarta.servlet.http.HttpServletRequest.isRequestedSessionIdFromUrl()
    As of Version 2.1 of the Java Servlet API, use HttpServletRequest.isRequestedSessionIdFromURL() instead.
    jakarta.servlet.http.HttpServletRequestWrapper.isRequestedSessionIdFromUrl()
    As of Version 3.0 of the Java Servlet API
    jakarta.servlet.http.HttpServletResponse.encodeRedirectUrl(String)
    As of version 2.1, use encodeRedirectURL(String url) instead
    jakarta.servlet.http.HttpServletResponse.encodeUrl(String)
    As of version 2.1, use encodeURL(String url) instead
    jakarta.servlet.http.HttpServletResponse.setStatus(int, String)
    As of version 2.1, due to ambiguous meaning of the message parameter. To set a status code use setStatus(int), to send an error with a description use sendError(int, String).
    jakarta.servlet.http.HttpServletResponseWrapper.encodeRedirectUrl(String)
    As of Version 3.0 of the Java Servlet API
    jakarta.servlet.http.HttpServletResponseWrapper.encodeUrl(String)
    As of Version 3.0 of the Java Servlet API
    jakarta.servlet.http.HttpServletResponseWrapper.setStatus(int, String)
    As of Version 3.0 of the Java Servlet API
    jakarta.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.
    jakarta.servlet.http.HttpSession.getValue(String)
    As of Version 2.2, this method is replaced by HttpSession.getAttribute(java.lang.String).
    jakarta.servlet.http.HttpSession.getValueNames()
    As of Version 2.2, this method is replaced by HttpSession.getAttributeNames()
    jakarta.servlet.http.HttpSession.putValue(String, Object)
    As of Version 2.2, this method is replaced by HttpSession.setAttribute(java.lang.String, java.lang.Object)
    jakarta.servlet.http.HttpSession.removeValue(String)
    As of Version 2.2, this method is replaced by HttpSession.removeAttribute(java.lang.String)
    jakarta.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.
    jakarta.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.
    jakarta.servlet.jsp.JspContext.getExpressionEvaluator()
    As of JSP 2.1, replaced by JspApplicationContext.getExpressionFactory()
    jakarta.servlet.jsp.JspContext.getVariableResolver()
    As of JSP 2.1, replaced by jakarta.el.ELContext.getELResolver() which can be obtained by jspContext.getELContext().getELResolver()
    jakarta.servlet.jsp.JspException.getRootCause()
    As of JSP 2.1, replaced by java.lang.Throwable.getCause()
    jakarta.servlet.ServletContext.getServlet(String)
    As of Java Servlet API 2.1, with no direct replacement.
    jakarta.servlet.ServletContext.getServletNames()
    As of Java Servlet API 2.1, with no replacement.
    jakarta.servlet.ServletContext.getServlets()
    As of Java Servlet API 2.0, with no replacement.
    jakarta.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.

    jakarta.servlet.ServletRequest.getRealPath(String)
    As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead.
    jakarta.servlet.ServletRequestWrapper.getRealPath(String)
    As of Version 3.0 of the Java Servlet API
    jakarta.servlet.UnavailableException.getServlet()
    As of Java Servlet API 2.2, with no replacement.
    org.apache.el.parser.SimpleCharStream.getColumn()
    org.apache.el.parser.SimpleCharStream.getLine()
    org.apache.jasper.EmbeddedServletOptions.getIeClassId()
    Will be removed in Tomcat 10.1
    org.apache.jasper.JspC.getIeClassId()
    org.apache.jasper.JspC.setIeClassId(String)
    Will be removed in Tomcat 10.1
    org.apache.jasper.Options.getIeClassId()
    Will be removed in Tomcat 10.1.x
    org.apache.jasper.runtime.JspContextWrapper.getExpressionEvaluator()
    org.apache.jasper.runtime.JspContextWrapper.getVariableResolver()
    org.apache.jasper.runtime.JspContextWrapper.resolveVariable(String)
    org.apache.jasper.runtime.PageContextImpl.getExpressionEvaluator()
    org.apache.jasper.runtime.PageContextImpl.getVariableResolver()
    org.apache.jasper.servlet.JspCServletContext.getServlet(String)
    This method has been deprecated with no replacement
    org.apache.jasper.servlet.JspCServletContext.getServletNames()
    This method has been deprecated with no replacement
    org.apache.jasper.servlet.JspCServletContext.getServlets()
    This method has been deprecated with no replacement
    org.apache.jasper.servlet.JspCServletContext.log(Exception, String)
    Use log(String,Throwable) instead
  • Deprecated Constructors
    Constructor
    Description
    jakarta.servlet.UnavailableException(int, Servlet, String)
    As of Java Servlet API 2.2, use UnavailableException(String, int) instead.
    jakarta.servlet.UnavailableException(Servlet, String)
    As of Java Servlet API 2.2, use UnavailableException(String) instead.

Copyright © 2014–2023. All rights reserved.