Servlet:
- Servlet is a server side java objects.
- Servlets are programs that run on a Web or Application server.
- Servlet is used to create dynamic web pages.
- For servlet, only one object is created and each request is handled by threads.
- so, Servlet is not a Thread safe by default.
- By Synchronizing, we can make servlet as Thread safe.
- Servlet act as a middle layer between a request coming from a Web browser or other HTTP client and databases or applications on the HTTP server
Request and Response:
- It Contains header and data
Request URL Format:
- PROTOCOL://HOST:PORT/CONTEXT/RESOURCE
No comments:
Post a Comment