|
|
Servlets Basics
Servlets are server side java Programs that can be deployed on a web
server
The servlet interfce provids the basice framework for coding servlets
|
|
Servlets are
portable
extensible
persistent
Robust
The life cycle of a servlet is composed of init(),service() and the
destriy() methods
Servlets can be deployed in the J2EE,JWS,Apache servers
|
The deploytool command is
used to deploy a servlet on a J2EE server
Session:
A session is a group of transaction that happen between the server and
the client over the period of time
Session tracking can be implemented by any of the following methods
URL rewriting
Hidden form fields
Cookies
classes used to create
servlets
HttpServlet
HttpServletRequest
HttpServletResponse
ServletConfig
The data which is common
to servlets can be accessed by using the ServletContext Interface
|
|
|