NADAR SARASWATHI
COLLEGE OF ARTS
&SCIENCE
THENI.
SERVLET ARCHITECTURE IN JAVA
presented by
M.Jeyavarthini M.sc(CS)
Servlet Architecture
• Servlets are grouped under the
Advanced Java tree that are used to create
dynamic web applications. Servlets are robust
in nature, well scalable and are primarily used
in developing server-side applications.
Servlet Architecture
• If we go a little back in time, we
would be able to witness that before the
introduction of servlets.
• CGI (Common Gateway Interface) were used.
Servlet Architecture
• Amid several indigenous tasks that
a servlet is capable of doing, dynamically
performing client requests and responses are
most common.
• Other tasks that a servlet can do effectively are
TASKS
• Can easily manage/control the
application flow.
• Suitable to implement business logic.
TASKS
• Can effectively balance the load
at the server-side.
• Easily generate dynamic web
content.
TYPES
• Talking about the types of servlets,
there are primarily two types, namely:
1. Generic Servlets
2. HTTP Servlets
Potential Ways
• There are three potential ways in which
we can employ to create a servlet:
Implementing Servlet Interface
Extending Generic Servlet
Extending HTTP Servlet
Servlet Architecture
• Servlet architecture comes under
a java programming language used to
create dynamic web applications.
• Mainly servlets are used to develop
server-side applications.
Demonstrate Servlet
o What are Servlets demonstrate Servlet
architecture and explain its working?
• Servlets execute within the address
space of a Web server.
• It is not necessary to create a separate
process to handle each client request.
Demonstrate Servlet
• Servlets are platform-independent
because they are written in Java.
• Java security manager on the server
enforces a set of restrictions to protect the
resources on a server machine.
Life cycle with Architecture
o What is Servlet ,Servlet lifecycle with
architecture?
Advertisements.
A servlet life cycle can be defined as the
entire process from its creation till the
destruction.
Methods
• The following are the paths followed by a
servlet.
• The servlet is initialized by calling the init()
method.
• The servlet calls service() method to process a
client's request.
Servlet Architecture
THAKING YOU

Servlet.ppt

  • 1.
    NADAR SARASWATHI COLLEGE OFARTS &SCIENCE THENI. SERVLET ARCHITECTURE IN JAVA presented by M.Jeyavarthini M.sc(CS)
  • 2.
    Servlet Architecture • Servletsare grouped under the Advanced Java tree that are used to create dynamic web applications. Servlets are robust in nature, well scalable and are primarily used in developing server-side applications.
  • 3.
    Servlet Architecture • Ifwe go a little back in time, we would be able to witness that before the introduction of servlets. • CGI (Common Gateway Interface) were used.
  • 4.
    Servlet Architecture • Amidseveral indigenous tasks that a servlet is capable of doing, dynamically performing client requests and responses are most common. • Other tasks that a servlet can do effectively are
  • 5.
    TASKS • Can easilymanage/control the application flow. • Suitable to implement business logic.
  • 6.
    TASKS • Can effectivelybalance the load at the server-side. • Easily generate dynamic web content.
  • 7.
    TYPES • Talking aboutthe types of servlets, there are primarily two types, namely: 1. Generic Servlets 2. HTTP Servlets
  • 8.
    Potential Ways • Thereare three potential ways in which we can employ to create a servlet: Implementing Servlet Interface Extending Generic Servlet Extending HTTP Servlet
  • 9.
    Servlet Architecture • Servletarchitecture comes under a java programming language used to create dynamic web applications. • Mainly servlets are used to develop server-side applications.
  • 10.
    Demonstrate Servlet o Whatare Servlets demonstrate Servlet architecture and explain its working? • Servlets execute within the address space of a Web server. • It is not necessary to create a separate process to handle each client request.
  • 11.
    Demonstrate Servlet • Servletsare platform-independent because they are written in Java. • Java security manager on the server enforces a set of restrictions to protect the resources on a server machine.
  • 12.
    Life cycle withArchitecture o What is Servlet ,Servlet lifecycle with architecture? Advertisements. A servlet life cycle can be defined as the entire process from its creation till the destruction.
  • 13.
    Methods • The followingare the paths followed by a servlet. • The servlet is initialized by calling the init() method. • The servlet calls service() method to process a client's request.
  • 14.
  • 15.