Monday, June 25, 2018

Servlet Introduction

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
          Eg: http://192.168.192.59:8080/Application name/web page

No comments:

Post a Comment