整理JSP九大内置对象在tomcat容器中的实际类型

(1)application
    实际类型:org.apache.catalina.core.ApplicationContextFacade
     ApplicationContextFacade 实现接口javax.servlet.ServletContext

(2)page
    实际类型:org.apache.jsp.index_jsp
     index_jsp 继承类org.apache.jasper.runtime.HttpJspBase
     HttpJspBase继承 javax.servlet.http.HttpServlet

(3)config
     实际类型: org.apache.catalina.core.StandardWrapperFacade
     StandardWrapperFacade 实现接口javax.servlet.ServletConfig

(4)request
     实际类型: org.apache.catalina.connector.RequestFacade
     RequestFacade  实现接口 javax.servlet.http.HttpServletRequest

(5)response
     实际类型: org.apache.catalina.connector.ResponseFacade 
     ResponseFacade 实现接口javax.servlet.http.HttpServletRequest

(6)out
     实际类型: org.apache.jasper.runtime.JspWriterImpl
     JspWriterImpl 继承javax.servlet.jsp.JspWriter

(7)session
     实际类型: org.apache.catalina.session.StandardSessionFacade
     StandardSessionFacade实现接口 javax.servlet.http.HttpSession

(8)pageContext
     实际类型: org.apache.jasper.runtime.PageContextImpl 
     PageContextImpl 继承javax.servlet.jsp.PageContext

(9)exception: 

本文出自 “小山川” 博客,谢绝转载!

你可能感兴趣的:(tomcat)