home view source

Servlet Initial Parameters

GenericServlet.getInitParameter() : age = 20
GenericServlet.getInitParameter() : color = blue
GenericServlet.getServletName() : ServletContextTest
GenericServlet.getServletInfo() :

Servlet Initial Parameters (ServletConfig)

ServletConfig.getInitParameter() : age = 20
ServletConfig.getInitParameter() : color = blue
ServletConfig.getServletName() : ServletContextTest

ServletContext Initial Parameters

ServletContext.getInitParameter() : javax.faces.STATE_SAVING_METHOD = server
ServletContext.getMajorVersion() : 2
ServletContext.getMinorVersion() : 5
ServletContext.getServerInfo() : Jeus Web Container
ServletContext.getMimeType() : image/gif

ServletContext Attributes

ServletContext.getAttribute() : com.sun.faces.ApplicationImpl = com.sun.faces.application.ApplicationImpl@54e596ad
ServletContext.getAttribute() : attr3 = attr3-1
ServletContext.getAttribute() : com.sun.faces.config.WebConfiguration = com.sun.faces.config.WebConfiguration@2d076366
ServletContext.getAttribute() : javax.servlet.context.tempdir = /home/tmax/jeus6/webhome/openapi_container1/_generated_/examples/examples_war/tempdir
ServletContext.getAttribute() : context = examples
ServletContext.getAttribute() : jspx.1st.request = true
ServletContext.getAttribute() : com.sun.faces.ApplicationAssociate = com.sun.faces.application.ApplicationAssociate@400ed4a2
ServletContext.getAttribute() : description = For testing servlet APIs
ServletContext.getAttribute() : com.sun.faces.sunJsfJs = [C@da9f889

Modified ServletContext Attributes

(Removing "servlet" attribute)
ServletContext.getAttribute() : com.sun.faces.ApplicationImpl = com.sun.faces.application.ApplicationImpl@54e596ad
ServletContext.getAttribute() : attr3 = attr3-1
ServletContext.getAttribute() : com.sun.faces.config.WebConfiguration = com.sun.faces.config.WebConfiguration@2d076366
ServletContext.getAttribute() : javax.servlet.context.tempdir = /home/tmax/jeus6/webhome/openapi_container1/_generated_/examples/examples_war/tempdir
ServletContext.getAttribute() : context = examples
ServletContext.getAttribute() : jspx.1st.request = true
ServletContext.getAttribute() : com.sun.faces.ApplicationAssociate = com.sun.faces.application.ApplicationAssociate@400ed4a2
ServletContext.getAttribute() : description = For testing servlet APIs
ServletContext.getAttribute() : com.sun.faces.sunJsfJs = [C@da9f889

Attributes of Other ServletContext

(Examples servlet context) examples context attribute : com.sun.faces.ApplicationImpl = com.sun.faces.application.ApplicationImpl@54e596ad
examples context attribute : attr3 = attr3-1
examples context attribute : com.sun.faces.config.WebConfiguration = com.sun.faces.config.WebConfiguration@2d076366
examples context attribute : javax.servlet.context.tempdir = /home/tmax/jeus6/webhome/openapi_container1/_generated_/examples/examples_war/tempdir
examples context attribute : context = examples
examples context attribute : jspx.1st.request = true
examples context attribute : com.sun.faces.ApplicationAssociate = com.sun.faces.application.ApplicationAssociate@400ed4a2
examples context attribute : description = For testing servlet APIs
examples context attribute : com.sun.faces.sunJsfJs = [C@da9f889

Deprecated ServletContext APIs

(Nothing must be printed)

ServletContext Resource APIs

ServletContext.getResource() (/hello.html) : file:/home/tmax/jeus6/webhome/openapi_container1/examples/examples_war___/hello.html Hello

Hello, World (This is hello.html file)

ServletContext.getResourceAsStream() (/hello.html) Hello

Hello, World (This is hello.html file)