What are the important items in javax.servlets. Explain them.Servlets :
- Defines all the methods that a servlets implements.
- Servlets receives and responds to a request from the web clients.
- This interface has the methods that are to initialize a servlets, service a request and removal of a servlets from the server.
ServletConfig :
- Servlets configuration is used to send information to a servlets at the time of initializing the servlets.
- This process is handled by the web container.
ServletRequest :
- It creates an object that provides the client request to the servlet.
- The servlets container creates the object and sends it to service() method.
ServletResponse :
- It creates an object that provides the response to the client by the servlets.
- The servlets container creates the object and sends it to the service() method.
|