SlideShare a Scribd company logo
3
Most read
5
Most read
6
Most read
SERVLET
Submitted by,
B. Soundarya, B.Sc,
Nadar Saraswathi College of Arts and
Science,
Theni.
SERVLETS
Servlet is a simple java program
that runs an a java enabled web
server or application server.
They are used to handle the
request obtained from the web
serve, process the request,
produce the response, then
response back to the web
server.
PROPERTIES OF SERVLET
Servlets work on the
server side.
Servlet capable of
handling complex
request obtained from
web server.
EXECUTION OF
SERVLET
Execution of servlets involves the six basic step’s:
1. The client send the request to the web
server.
2. The web server passes the request and
corresponding servlet.
3. The web server receive the request.
4. The servlet processes the request and
generate in the response in the form of output.
5. The servlet send the response back
to the web server.
SERVLET ARCHITECTURE
WEB BROWSER
WEB SERVER
SERVLET PROGRAM
DATABASE
ADVANTAGE OF A JAVA
SERVLET
 Servlet is faster than CGI as it not
involve the creation of a new process
every new request received.
 Servlet as written in java are platform
independent.
 Remove the overhead of creation a new
process for each request of Servlet
doesn’t run in a separate process.
 It is server side components, Servlet
inherits the security provided by the web
server.
SERVLET CONTAINER
 It also know as servlets engine is an
integrated set of object that
provided run time environment for
java servlets components.
 In simple words, it is a system that
manages java servlets components
on top of the web server to handle
the web client request
SERVICES PROVIDED BY THE
SERVLET CONTAINER
Networking Services
Decode and encode MIME based
messages
Manage Servlet container
Resource Management
Security Service
Session Management
NETWORK SERVICES
Load a Servlet class. The loading
may be from a local file system,
a remote file system or other
network service.
The Servlet container provides
the network service over which
the request and response are
sent.
DECODE AND ENCODE
MIME BASED MESSAGES
Provides the service of
decoding and encoding
MIME- based message.
Encoding the container
provides the network
services.
MANAGE SERVLET
CONTAINER
 Manage lifecycle of a Servlet.
 Three methods are central to the
life cycle of a Servlet.
 These are init(),service(),and
destroy(). They are implemented by
every Servlet and are invoked at
specific times by the server
RESOURCE
MANAGEMENT
 Manages the static and dynamic
resource such as HTML files,
Servlet and JSP page.
 The init( ), service( ), and destroy( )
methods are the life cycle methods
of the Servlet.
 These are invoked by the server.
The get Servlet Con fig( ) method is
called by the Servlet to obtain
initialization parameters.
SECURITY SERVICES
Handle authorization and
authentication of resource
access.
The Servlet Request interface
includes methods that allow you
to read the names and values of
parameters that are included in
a client request.
SESSION MANAGEMENT
 Maintains a session by appending a session
ID to the URL path.
 The Http Servlet class provides
specialized methods that handle the
various types of HTTP requests.
 A Servlet developer typically overrides
one of these methods.
 These methods are do Delete(), doGet(),
doHead(), doOptions(), doPost(), doPut(),
and doTrace().
THANK YOU!!!

More Related Content

PDF
Servlet and servlet life cycle
Dhruvin Nakrani
 
PPTX
Servlets
ZainabNoorGul
 
PPT
Servlet life cycle
Venkateswara Rao N
 
PPTX
Servlets
Akshay Ballarpure
 
PPTX
Java/Servlet/JSP/JDBC
FAKHRUN NISHA
 
PPTX
Servlets
Rajkiran Mummadi
 
PPT
Java Servlets
BG Java EE Course
 
PPT
Java web services
kumar gaurav
 
Servlet and servlet life cycle
Dhruvin Nakrani
 
Servlets
ZainabNoorGul
 
Servlet life cycle
Venkateswara Rao N
 
Java/Servlet/JSP/JDBC
FAKHRUN NISHA
 
Java Servlets
BG Java EE Course
 
Java web services
kumar gaurav
 

What's hot (20)

PPTX
Threads in JAVA
Haldia Institute of Technology
 
PPT
Scripting languages
teach4uin
 
PPTX
Java awt (abstract window toolkit)
Elizabeth alexander
 
PPTX
OOPS In JAVA.pptx
Sachin33417
 
PDF
Basics of JavaScript
Bala Narayanan
 
PPT
Jsp ppt
Vikas Jagtap
 
PPTX
Java Server Pages(jsp)
Manisha Keim
 
PPTX
Servlet.ppt
VMahesh5
 
PPT
Javascript
Manav Prasad
 
PDF
input/ output in java
sharma230399
 
PPT
Js ppt
Rakhi Thota
 
PDF
Java I/o streams
Hamid Ghorbani
 
ODP
Introduction of Html/css/js
Knoldus Inc.
 
PPTX
JAVA AWT
shanmuga rajan
 
PDF
Java I/O
Jussi Pohjolainen
 
PPT
Introduction to JavaScript
Andres Baravalle
 
PPTX
Lecture_7-Encapsulation in Java.pptx
ShahinAhmed49
 
PDF
WEB I - 01 - Introduction to Web Development
Randy Connolly
 
PPTX
PHP FUNCTIONS
Zeeshan Ahmed
 
PPTX
Types of Drivers in JDBC
Hemant Sharma
 
Scripting languages
teach4uin
 
Java awt (abstract window toolkit)
Elizabeth alexander
 
OOPS In JAVA.pptx
Sachin33417
 
Basics of JavaScript
Bala Narayanan
 
Jsp ppt
Vikas Jagtap
 
Java Server Pages(jsp)
Manisha Keim
 
Servlet.ppt
VMahesh5
 
Javascript
Manav Prasad
 
input/ output in java
sharma230399
 
Js ppt
Rakhi Thota
 
Java I/o streams
Hamid Ghorbani
 
Introduction of Html/css/js
Knoldus Inc.
 
JAVA AWT
shanmuga rajan
 
Introduction to JavaScript
Andres Baravalle
 
Lecture_7-Encapsulation in Java.pptx
ShahinAhmed49
 
WEB I - 01 - Introduction to Web Development
Randy Connolly
 
PHP FUNCTIONS
Zeeshan Ahmed
 
Types of Drivers in JDBC
Hemant Sharma
 
Ad

Similar to servlet in java (20)

PPTX
JAVA SERVLETS acts as a middle layer between a request coming from a web brow...
ssuser4f7d71
 
PPTX
UNIT-3 Servlet
ssbd6985
 
PPT
Servlets
Sasidhar Kothuru
 
PPTX
Wt unit 3
team11vgnt
 
PPT
Lecture 2
Ahmed Madkor
 
PPT
Presentation on java servlets
Aamir Sohail
 
PPTX
21CS642 Module 4_1 Servlets PPT.pptx VI SEM CSE Students
VENKATESHBHAT25
 
PPT
Module 4.pptModule 4.pptModule 4.pptModule 4.ppt
tahirnaquash2
 
PPTX
java Servlet technology
Tanmoy Barman
 
PPTX
Chapter 3 servlet & jsp
Jafar Nesargi
 
PPT
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
sindhu991994
 
PPTX
SERVLET in web technolgy engineering.pptx
ARUNKUMARM230658
 
PPT
JAVA Servlets
deepak kumar
 
PPTX
servlets sessions and cookies, jdbc connectivity
snehalatha790700
 
PDF
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Tushar B Kute
 
PPTX
Servlet.pptx
Senthil Kumar
 
PPTX
Servlet.pptx
SenthilKumar571813
 
PDF
SERVER SIDE PROGRAMMING
Prabu U
 
PPTX
Enterprise java unit-1_chapter-3
sandeep54552
 
PDF
java servlet and servlet programming
Kumar
 
JAVA SERVLETS acts as a middle layer between a request coming from a web brow...
ssuser4f7d71
 
UNIT-3 Servlet
ssbd6985
 
Wt unit 3
team11vgnt
 
Lecture 2
Ahmed Madkor
 
Presentation on java servlets
Aamir Sohail
 
21CS642 Module 4_1 Servlets PPT.pptx VI SEM CSE Students
VENKATESHBHAT25
 
Module 4.pptModule 4.pptModule 4.pptModule 4.ppt
tahirnaquash2
 
java Servlet technology
Tanmoy Barman
 
Chapter 3 servlet & jsp
Jafar Nesargi
 
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
sindhu991994
 
SERVLET in web technolgy engineering.pptx
ARUNKUMARM230658
 
JAVA Servlets
deepak kumar
 
servlets sessions and cookies, jdbc connectivity
snehalatha790700
 
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Tushar B Kute
 
Servlet.pptx
Senthil Kumar
 
Servlet.pptx
SenthilKumar571813
 
SERVER SIDE PROGRAMMING
Prabu U
 
Enterprise java unit-1_chapter-3
sandeep54552
 
java servlet and servlet programming
Kumar
 
Ad

More from sowfi (20)

PPT
Lavanya m.sc
sowfi
 
PPT
Lavanya m.sc
sowfi
 
PPT
Soundarya m.sc
sowfi
 
PPTX
Software engineering 2
sowfi
 
PPTX
Compiler design
sowfi
 
PPTX
Big data analytics
sowfi
 
PPTX
Web programming
sowfi
 
PPTX
OS
sowfi
 
PPTX
OS
sowfi
 
PPTX
RDBMS
sowfi
 
PPTX
DM
sowfi
 
PPTX
CN
sowfi
 
PPTX
CN
sowfi
 
PPTX
Dm
sowfi
 
PPTX
RDBMS
sowfi
 
PPTX
connected compounds
sowfi
 
PPTX
GENETIC ALGORITHM
sowfi
 
PPTX
JDBE
sowfi
 
PPTX
AUTO & HETRO CORRELATOR
sowfi
 
PPTX
single source shorest path
sowfi
 
Lavanya m.sc
sowfi
 
Lavanya m.sc
sowfi
 
Soundarya m.sc
sowfi
 
Software engineering 2
sowfi
 
Compiler design
sowfi
 
Big data analytics
sowfi
 
Web programming
sowfi
 
OS
sowfi
 
OS
sowfi
 
RDBMS
sowfi
 
DM
sowfi
 
CN
sowfi
 
CN
sowfi
 
Dm
sowfi
 
RDBMS
sowfi
 
connected compounds
sowfi
 
GENETIC ALGORITHM
sowfi
 
JDBE
sowfi
 
AUTO & HETRO CORRELATOR
sowfi
 
single source shorest path
sowfi
 

Recently uploaded (20)

PDF
Module 3: Health Systems Tutorial Slides S2 2025
Jonathan Hallett
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
How to Manage Global Discount in Odoo 18 POS
Celine George
 
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
PPTX
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
mansk2
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PDF
Electricity-Magnetic-and-Heating-Effects 4th Chapter/8th-science-curiosity.pd...
Sandeep Swamy
 
PPTX
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PPTX
Congenital Hypothyroidism pptx
AneetaSharma15
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
Module 3: Health Systems Tutorial Slides S2 2025
Jonathan Hallett
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
How to Manage Global Discount in Odoo 18 POS
Celine George
 
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Week 4 Term 3 Study Techniques revisited.pptx
mansk2
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
Electricity-Magnetic-and-Heating-Effects 4th Chapter/8th-science-curiosity.pd...
Sandeep Swamy
 
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
Congenital Hypothyroidism pptx
AneetaSharma15
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 

servlet in java

  • 1. SERVLET Submitted by, B. Soundarya, B.Sc, Nadar Saraswathi College of Arts and Science, Theni.
  • 2. SERVLETS Servlet is a simple java program that runs an a java enabled web server or application server. They are used to handle the request obtained from the web serve, process the request, produce the response, then response back to the web server.
  • 3. PROPERTIES OF SERVLET Servlets work on the server side. Servlet capable of handling complex request obtained from web server.
  • 4. EXECUTION OF SERVLET Execution of servlets involves the six basic step’s: 1. The client send the request to the web server. 2. The web server passes the request and corresponding servlet. 3. The web server receive the request. 4. The servlet processes the request and generate in the response in the form of output. 5. The servlet send the response back to the web server.
  • 5. SERVLET ARCHITECTURE WEB BROWSER WEB SERVER SERVLET PROGRAM DATABASE
  • 6. ADVANTAGE OF A JAVA SERVLET  Servlet is faster than CGI as it not involve the creation of a new process every new request received.  Servlet as written in java are platform independent.  Remove the overhead of creation a new process for each request of Servlet doesn’t run in a separate process.  It is server side components, Servlet inherits the security provided by the web server.
  • 7. SERVLET CONTAINER  It also know as servlets engine is an integrated set of object that provided run time environment for java servlets components.  In simple words, it is a system that manages java servlets components on top of the web server to handle the web client request
  • 8. SERVICES PROVIDED BY THE SERVLET CONTAINER Networking Services Decode and encode MIME based messages Manage Servlet container Resource Management Security Service Session Management
  • 9. NETWORK SERVICES Load a Servlet class. The loading may be from a local file system, a remote file system or other network service. The Servlet container provides the network service over which the request and response are sent.
  • 10. DECODE AND ENCODE MIME BASED MESSAGES Provides the service of decoding and encoding MIME- based message. Encoding the container provides the network services.
  • 11. MANAGE SERVLET CONTAINER  Manage lifecycle of a Servlet.  Three methods are central to the life cycle of a Servlet.  These are init(),service(),and destroy(). They are implemented by every Servlet and are invoked at specific times by the server
  • 12. RESOURCE MANAGEMENT  Manages the static and dynamic resource such as HTML files, Servlet and JSP page.  The init( ), service( ), and destroy( ) methods are the life cycle methods of the Servlet.  These are invoked by the server. The get Servlet Con fig( ) method is called by the Servlet to obtain initialization parameters.
  • 13. SECURITY SERVICES Handle authorization and authentication of resource access. The Servlet Request interface includes methods that allow you to read the names and values of parameters that are included in a client request.
  • 14. SESSION MANAGEMENT  Maintains a session by appending a session ID to the URL path.  The Http Servlet class provides specialized methods that handle the various types of HTTP requests.  A Servlet developer typically overrides one of these methods.  These methods are do Delete(), doGet(), doHead(), doOptions(), doPost(), doPut(), and doTrace().