-
Initialising Servlet
-
Life Cycle
- Instantiation
- Initialisation
- Service
- Destroy
- Unavailable
-
ServletConfig
-
Methods
- getServletName()
- getInitParameter()
- getServletContext()
-
Initialising Servlet
- web.xml
-
ServletContext
- All servlet in an app
-
Methods
- getAttribute()
- setAttribute()
-
ServletContextListener
- contextInitialized()
- contextDestroyed()
- java.util.EventListener
-
ServletContextEvent
- java.util.EventObject
- getServletContext()
-
ServletContextAttributeListener
- attributeAdded()
- attributeRemoved()
- attributeReplaced()
-
ServletContextAttributeEvent
- getName()
- getValue()
-
ServletRequest
-
About Server
-
getServletContext()
- getServerInfo()
- getAttribute()
-
About Client
- getHeader()
- getRemoteUser()
- getRemoteHost()
-
Sharing
-
RequestDispatcher
- forward()
- insert()
-
RequestDispatcher
-
Include Resources
- forward()
- include()
-
3 types
- manipulation
- reuse
- collaboration
-
Error Handling
-
Reporting Errors
- sendError()
- setStatus()