Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
Uploaded by
MMichealBerdinanth
PPT, PDF
20 views
Updated-Servlet Introduction Lifecycle of Servlet
PPT which teaches the lifecycle of Servlets in Java
Engineering
◦
Read more
0
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 31
2
/ 31
3
/ 31
4
/ 31
5
/ 31
6
/ 31
7
/ 31
8
/ 31
9
/ 31
10
/ 31
11
/ 31
12
/ 31
13
/ 31
14
/ 31
15
/ 31
16
/ 31
17
/ 31
18
/ 31
19
/ 31
20
/ 31
21
/ 31
22
/ 31
23
/ 31
24
/ 31
25
/ 31
26
/ 31
27
/ 31
28
/ 31
29
/ 31
30
/ 31
31
/ 31
More Related Content
DOC
Unit5 servlets
by
Praveen Yadav
DOC
Java Servlets & JSP
by
Manjunatha RK
PPTX
Web container and Apache Tomcat
by
Auwal Amshi
PPTX
Servlets
by
Rajkiran Mummadi
PPT
Web Applications and Deployment
by
BG Java EE Course
PPT
1 java servlets and jsp
by
Ankit Minocha
PPT
Introduction to Java Servlets and JSP (1).ppt
by
ansariparveen06
PPTX
unit-iii-server-side-technologies-servlet-jsp.pptx
by
amitsharmahimcs
Unit5 servlets
by
Praveen Yadav
Java Servlets & JSP
by
Manjunatha RK
Web container and Apache Tomcat
by
Auwal Amshi
Servlets
by
Rajkiran Mummadi
Web Applications and Deployment
by
BG Java EE Course
1 java servlets and jsp
by
Ankit Minocha
Introduction to Java Servlets and JSP (1).ppt
by
ansariparveen06
unit-iii-server-side-technologies-servlet-jsp.pptx
by
amitsharmahimcs
Similar to Updated-Servlet Introduction Lifecycle of Servlet
PPT
Java Servlets
by
Nitin Pai
PPTX
Java Servlet
by
Yoga Raja
PDF
Core Servlets and JavaServer Pages Vol 1 Core Technologies 2. ed., Nachdr Edi...
by
wariamaibao
PPT
Knowledge Sharing : Java Servlet
by
Fahmi Jafar
PDF
Tomcat tutorail
by
Supratim Ray
PPTX
SERsbsbdbdbdbbdbdbdbbdbdbdbdbdbLETS.pptx
by
hi1506hi
PDF
01 overview-and-setup
by
snopteck
PPT
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
by
sindhu991994
PPTX
Unit_3_Servlet.pptx by hvygyvuvhvhbbigig thay f V cc C C d d d c f g
by
HarshDeliwala10B19
PPTX
Cis 274 intro
by
Aren Zomorodian
PPTX
Mastering-Servlets-with-Tomcat-and-Eclipse.pptx
by
shanthidl1
PPTX
SERVLETS (2).pptxintroduction to servlet with all servlets
by
RadhikaP41
PPT
JAVA Servlets
by
deepak kumar
PPTX
Http Server Programming in JAVA - Handling http requests and responses
by
bharathiv53
PDF
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
by
Tushar B Kute
PPTX
Chapter 3 servlet & jsp
by
Jafar Nesargi
PDF
Wt unit 3 server side technology
by
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
PDF
Wt unit 3 server side technology
by
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
PPT
Web Application Deployment
by
elliando dias
PPTX
01 overview-servlets-and-environment-setup
by
dhrubo kayal
Java Servlets
by
Nitin Pai
Java Servlet
by
Yoga Raja
Core Servlets and JavaServer Pages Vol 1 Core Technologies 2. ed., Nachdr Edi...
by
wariamaibao
Knowledge Sharing : Java Servlet
by
Fahmi Jafar
Tomcat tutorail
by
Supratim Ray
SERsbsbdbdbdbbdbdbdbbdbdbdbdbdbLETS.pptx
by
hi1506hi
01 overview-and-setup
by
snopteck
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
by
sindhu991994
Unit_3_Servlet.pptx by hvygyvuvhvhbbigig thay f V cc C C d d d c f g
by
HarshDeliwala10B19
Cis 274 intro
by
Aren Zomorodian
Mastering-Servlets-with-Tomcat-and-Eclipse.pptx
by
shanthidl1
SERVLETS (2).pptxintroduction to servlet with all servlets
by
RadhikaP41
JAVA Servlets
by
deepak kumar
Http Server Programming in JAVA - Handling http requests and responses
by
bharathiv53
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
by
Tushar B Kute
Chapter 3 servlet & jsp
by
Jafar Nesargi
Wt unit 3 server side technology
by
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
Wt unit 3 server side technology
by
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
Web Application Deployment
by
elliando dias
01 overview-servlets-and-environment-setup
by
dhrubo kayal
More from MMichealBerdinanth
PPT
Servlet ParameterData getParameterName getValues
by
MMichealBerdinanth
PPT
notes_Image Enhancement in Frequency Domain(2).ppt
by
MMichealBerdinanth
PPTX
1.10 Project Scheduling in Software Engineering.pptx
by
MMichealBerdinanth
PPTX
The Operating System Quiz on the Topic Allocation Of Frames
by
MMichealBerdinanth
PPTX
Indian Constitution - The Federal System of India
by
MMichealBerdinanth
PDF
Privacy And Security in Online Social Media
by
MMichealBerdinanth
PPTX
A,B,C Scan Displays
by
MMichealBerdinanth
Servlet ParameterData getParameterName getValues
by
MMichealBerdinanth
notes_Image Enhancement in Frequency Domain(2).ppt
by
MMichealBerdinanth
1.10 Project Scheduling in Software Engineering.pptx
by
MMichealBerdinanth
The Operating System Quiz on the Topic Allocation Of Frames
by
MMichealBerdinanth
Indian Constitution - The Federal System of India
by
MMichealBerdinanth
Privacy And Security in Online Social Media
by
MMichealBerdinanth
A,B,C Scan Displays
by
MMichealBerdinanth
Recently uploaded
PPTX
Basic Volume Mass Relationship and unit weight as function of volumetric wate...
by
MahmoodKhalid11
PPTX
Distresses in Road Flexible pavement.pptx
by
MahmoodKhalid11
PPTX
Fitting Infiltration Models to Infiltration using Excel (1).pptx
by
TomNickoRivera1
PPTX
Introduction to AI and Applications Module-4.pptx
by
KalaiselviSubramania2
PDF
Chemical Hazards at Workplace – Types, Properties & Exposure Routes, CORE-EHS
by
CORE EHS
PDF
Module 4 python programming-1BPLCK105B-2025 by Dr.SV.pdf
by
SURESHA V
PPTX
uADPF Topology_SFP requirements_locked slides.pptx
by
Md Bellal Hossain
PPTX
Week 1.pptx dynamics particle kinetics introduction
by
fmsalih06
PDF
Lifting Operations Safety and Risk Control
by
manju774
PDF
Ericsson 6230 Training Module Document.pdf
by
Md Bellal Hossain
PPTX
ISO 13485.2016 Awareness's Training material
by
PrakashSivan
PDF
Computer Graphics Fundamentals (v0p1) - DannyJiang
by
Danny Jiang
PDF
AWS Re:Invent 2025 Recap by FivexL - Guilherme, Vladimir, Andrey
by
Andrey Devyatkin
PDF
Chris Elwell Woburn - An Experienced IT Executive
by
Chris Elwell Woburn
PPTX
The Most Controversial TPM Debate in Maintenance Today Checklist TPM vs Outco...
by
MaintWiz Technologies Private Limited
PPTX
Why TPM Succeeds in Some Plants and Struggles in Others | MaintWiz
by
MaintWiz Technologies Private Limited
PPT
Momentum and collisions in physics or engineering
by
azizrahmanhakimi
PDF
Industrial Tools Manufacturers In India : Torso Tools
by
torsotools8
PPT
Integer , Goal and Non linear Programming Model
by
OcheriCyril2
PDF
Soil Compressibility (Elastic Settlement).pdf
by
MahmoodKhalid11
Basic Volume Mass Relationship and unit weight as function of volumetric wate...
by
MahmoodKhalid11
Distresses in Road Flexible pavement.pptx
by
MahmoodKhalid11
Fitting Infiltration Models to Infiltration using Excel (1).pptx
by
TomNickoRivera1
Introduction to AI and Applications Module-4.pptx
by
KalaiselviSubramania2
Chemical Hazards at Workplace – Types, Properties & Exposure Routes, CORE-EHS
by
CORE EHS
Module 4 python programming-1BPLCK105B-2025 by Dr.SV.pdf
by
SURESHA V
uADPF Topology_SFP requirements_locked slides.pptx
by
Md Bellal Hossain
Week 1.pptx dynamics particle kinetics introduction
by
fmsalih06
Lifting Operations Safety and Risk Control
by
manju774
Ericsson 6230 Training Module Document.pdf
by
Md Bellal Hossain
ISO 13485.2016 Awareness's Training material
by
PrakashSivan
Computer Graphics Fundamentals (v0p1) - DannyJiang
by
Danny Jiang
AWS Re:Invent 2025 Recap by FivexL - Guilherme, Vladimir, Andrey
by
Andrey Devyatkin
Chris Elwell Woburn - An Experienced IT Executive
by
Chris Elwell Woburn
The Most Controversial TPM Debate in Maintenance Today Checklist TPM vs Outco...
by
MaintWiz Technologies Private Limited
Why TPM Succeeds in Some Plants and Struggles in Others | MaintWiz
by
MaintWiz Technologies Private Limited
Momentum and collisions in physics or engineering
by
azizrahmanhakimi
Industrial Tools Manufacturers In India : Torso Tools
by
torsotools8
Integer , Goal and Non linear Programming Model
by
OcheriCyril2
Soil Compressibility (Elastic Settlement).pdf
by
MahmoodKhalid11
Updated-Servlet Introduction Lifecycle of Servlet
1.
Introduction to Servlet
2.
Objective • To learn –
Motivation – Installation of Apache Tomcat Server – Development & Deployment of Web application Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0
3.
Outcome • Students will
be able to – Install Apache Tomcat server – Development & Deployment of web application Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0
4.
Context • HTML and
CSS were helpful in designing non-interactive website • However, Javascript is useful to create interactive website • DOM is used to interact with HTML document • Servlet is the java program or module resides in the server to process the request Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0
5.
Jackson, Web Technologies:
A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Server-side Programming • The combination of – HTML – JavaScript – DOM is sometimes referred to as Dynamic HTML (DHTML) • Web pages that include scripting are often called dynamic pages (vs. static)
6.
Jackson, Web Technologies:
A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Server-side Programming
7.
Static and Dynamic
Document Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0
8.
HTTP Request K. Vallidevi 5
9.
HTTP Response
10.
HTTP Response has
HTML in it
11.
Jackson, Web Technologies:
A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Servlet Overview
12.
What are Servlet
objects? Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0
14.
K. Vallidevi
16.
Jackson, Web Technologies:
A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Servlet Overview 1. When server starts it instantiates servlets 2. Server receives HTTP request, determines need for dynamic response 3. Server selects the appropriate servlet to generate the response, creates request/response objects, and passes them to a method on the servlet instance 4. Servlet adds information to response object via method calls 5. Server generates HTTP response based on information stored in response object
17.
Installation of Tomcat
Server • In Google, Type Apache Tomcat Installation Ubuntu 16.04 and find the liquid website • Download tar file of Apache Tomcat 8.5.50 from Liquidweb site • Extract and place it in /usr/local • Check the version of java and its availability • Usually we find in /usr/lib/jvm • Need to set JAVA_HOME, PATH & CATALINA_HOME in bashrc file Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0
18.
• bashrc is
a hidden file in home folder (~) • Open the bashrc file using nano editor • sudo nano ~/.bashrc • Add the following – JAVA_HOME=“/usr/lib/jvm/java-1.8-openjdk-amd64” – PATH=$PATH:$JAVA_HOME – CATALINA_HOME=“/usr/local/apache-tomcat=8.5.50 • Update bashrc file using any one of the commands – source ~/.bashrc – . ~/.bashrc Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Installation of Tomcat Server
19.
• Check the
environment variables by the following commands – $JAVA_HOME – $PATH – $CATALINA_HOME • Start the server – $CATALINA_HOME/startup.sh • Type the following in browser to check the administration page of Tomcat – http://localhost:8080 Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Installation of Tomcat Server
20.
• Take demo
Servlet from the following link – https://www.javatpoint.com/steps-to-create-a-servlet-u sing-tomcat-server • Extract the folder, you will get demo servlet • Place the demo servlet in webapps folder in apache-tomcat-8.5.50 • Type the following in browser to check demo servlet – http://localhost:8080/demo • Shutdown the server – $CATALINA_HOME/bin/shutdown.sh Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Installation of Tomcat Server
21.
• Create the
following hierarchy Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Development of our FirstServlet HelloServlet WEB-INF index.html classes web.xml welcome.class welcome.java
22.
• Index.html <html> <body> <form method=“get”
action=“hello”> <input type=“submit”> </form> </body> </html> Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Development of our FirstServlet
23.
• Web.xml <web-app> <servlet> <servlet-name>MyServlet1</servlet-name> <servlet-class>First</servlet-class> </servlet> <servlet-mapping> <servlet-name>MyServlet1</servlet-name> <url-pattern>/hello</url-pattern> </servlet-mapping> </web-app> Jackson, Web
Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Development of our FirstServlet
24.
• First.java import javax.servlet.http.*; import
javax.servlet.*; import java.io.*; public class First extends HttpServlet{ public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException { res.setContentType("text/html"); Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Development of our FirstServlet
25.
• First.java PrintWriter pw=res.getWriter(); pw.println(“<html>”); pw.println(“<body>”); pw.println(“<p>Hello
World</p>”); pw.println(“</body>”); pw.println(“</html>”); pw.close(); }} Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Development of our FirstServlet
26.
• Deployment of
application Place the folder FirstServlet in webapps folder Copy the servlet-api.jar available in tomcat/lib folder to /usr/lib/jvm/java…/jre/lib/ext folder Compile the First.java to get its class file Start the server Execute the servlet http://localhost:8080/FelloServlet Shutdown the server Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Development of our FirstServlet
27.
• In case
of myfirst.html instead of index.html • In deployment descriptor, add the following <welcome-file-list> <welcome-file>myfirst.html</welcome-file> </welcome-file-list> • Try executing the web application Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Development of our FirstServlet
28.
• Add style
in First.java and to retrieve the value from form • In index.html – <input type=“text” name=“t1”> • In First.java – String str=resp.getParameter(“t1”); – out.println(“<p>”+str+”</p>”); Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Development of our FirstServlet
29.
Simple Questions 1. What
environment variables have to be set during installation of Apache Tomcat Server? 2. How to set or update these environment variables in Ubuntu? 3. How to configure web application? 4. What is deployment descriptor? 5. How to retrieve data in servlet from the form? Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0
30.
References • Deitel and
Deitel and Nieto, ―Internet and World Wide Web - How to Program , ‖ Prentice Hall, 5th Edition, 2011. • Jeffrey C and Jackson, ―Web Technologies A Computer Science Perspective , Pearson Education, 2011. ‖ Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0
31.
Summary • Students will
be able to – Install Apache Tomcat server – Development & Deployment of web application Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0
Download