Servlet.ppt

370 views 15 slides Mar 05, 2022
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

Servlet architecture comes under a java programming language used to create dynamic web applications. Mainly servlets are used to develop server-side applications. Servlets are very robust and scalable. Before introducing servlets, CGI (common gateway interface) was used.


Slide Content

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 : Generic Servlets HTTP Servlets

P otential W ays 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 .

D emonstrate Servlet 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 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