SlideShare a Scribd company logo
Understanding Servlet and JSP
By
SaiButchiBabuManepalli
www.msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
1
 Introduction:
This chapter gives you an overview of Servlets and
JSP’s and the
interaction between the Client and the Server.
2
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
 Objective:
After completing this chapter you will be able to:
◦ Know the functions of web server and clients
◦ Explain how clients and servers interact
◦ Define the simple request/response sequence of HTTP
◦ Explain and explore the usage of Servlets and JSPs
3
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
 Web Server collects the request from the client, processes them
and generates a response which has to be given back to the client
 Client lets the user send request and shows the result of the
request.
 Clients and server communicates through HTML and HTTP
 HTTP is the language/protocol that clients and servers use to
communicate
 Browser understand the HTML and generates the GUI accordingly
4
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
5
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
 Initially the user requests for a resource by typing the URL in the
browser.
 Web browser send the request containing header information to
the server
 Server searches for the requested resource. The resource can be
an HTML file, pdf file
 The server sends the found resource to the web browser
 The Web browser interprets the HTML text and converts it into
GUI and displays it to the user
6
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
7
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
Web server has the following limitations:
◦ Cannot serve request for dynamic pages directly
◦ Cannot be used to save data into a database or file
 How to overcome these server issues ?
 Web Server makes use of helper application to serve issues like dynamic
content, save data into Database
 Helper application can be CGI (Common Gateway Interface), Servlets
 The helper applications like Servlets does the computation job for the
web server and returns the result back to the Web server
 The dynamic page that uses Java code is called JSP (Java Server Pages)
8
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
9
SERVLET
2. Web Server uses the
Servlet for help regarding
preparation of dynamic data
1. Request the Web server to display
a dynamic page
3. Populates the page with dynamic
data and sends it to the Web server
as if it is a static page
4. The page is given to the browser
for display
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
1. The language/protocol that clients and servers use to
communicate:
a) TCP
b) IP
c) HTTP
d) WAP
10
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem
 Web Server collects the request from the client, processes them
and generates a response which has to be given back to the
client.
 Clients and server communicates through HTML and HTTP.
 Web Server makes use of an helper application like Servlets to
process the request for dynamic Web pages or to save data in the
database.
 JSPs are dynamic pages that can make use of java code.
11Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem
 Reference books:
◦ Head First Servlet and JSP
◦ SCWCD Exam Kit –Hanumanth deshmukh
 Reference Web Site:
◦ http://www.coreservlets.com
◦ http://javapassion.com
◦ http://www.javaranch.com
12
Sai NagaVenkata BuchiBabu
Manepalli
msnvbbabu.blogspot.com
FB.com/IdeaForAnyProblem

More Related Content

DOCX
Bt0083 server side programming-theory
smumbahelp
 
PPT
Jsp(java server pages)
Khan Mac-arther
 
PPT
Jsp Comparison
Venky Sadasivam
 
PDF
Difference between asp.net web api and asp.net mvc
Umar Ali
 
PPTX
Week one presentation principles of web server scripting
John Robinson
 
PDF
Difference between asp.net mvc 3 and asp.net mvc 4
Umar Ali
 
PDF
Difference between asp.net web forms and asp.net mvc
Umar Ali
 
Bt0083 server side programming-theory
smumbahelp
 
Jsp(java server pages)
Khan Mac-arther
 
Jsp Comparison
Venky Sadasivam
 
Difference between asp.net web api and asp.net mvc
Umar Ali
 
Week one presentation principles of web server scripting
John Robinson
 
Difference between asp.net mvc 3 and asp.net mvc 4
Umar Ali
 
Difference between asp.net web forms and asp.net mvc
Umar Ali
 

What's hot (18)

PPTX
Web application using JSP
Kaml Sah
 
PDF
ASP.NET MVC difference between questions list 1
Umar Ali
 
PDF
Difference between wcf and asp.net web api
Umar Ali
 
PPT
Web Application Introduction
shaojung
 
DOCX
Bt0083, server side programming theory
smumbahelp
 
PPTX
Web designing avdhesh
Avdhesh Kushwah
 
PPTX
Different examples of jsp codes
karenm30
 
PDF
Add New Menu Item Wordpress Elementor
Peter Palme 高 彼特
 
PDF
Web application intro
Tobias Pfeiffer
 
DOCX
Bt0083, server side programming theory
smumbahelp
 
DOCX
Bt0083, server side programming theory
smumbahelp
 
PDF
Add New Section To Page Wordpress Elementor
Peter Palme 高 彼特
 
PDF
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 2...
WebStackAcademy
 
PDF
Edit Page Title in Elementor on Wordpress
Peter Palme 高 彼特
 
PPT
Web forms and server side scripting
sawsan slii
 
PPT
Active Server Page(ASP)
Keshab Nath
 
PPT
Manage sms in realtime with magento 2 sms notification extension
MageDelight
 
Web application using JSP
Kaml Sah
 
ASP.NET MVC difference between questions list 1
Umar Ali
 
Difference between wcf and asp.net web api
Umar Ali
 
Web Application Introduction
shaojung
 
Bt0083, server side programming theory
smumbahelp
 
Web designing avdhesh
Avdhesh Kushwah
 
Different examples of jsp codes
karenm30
 
Add New Menu Item Wordpress Elementor
Peter Palme 高 彼特
 
Web application intro
Tobias Pfeiffer
 
Bt0083, server side programming theory
smumbahelp
 
Bt0083, server side programming theory
smumbahelp
 
Add New Section To Page Wordpress Elementor
Peter Palme 高 彼特
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 2...
WebStackAcademy
 
Edit Page Title in Elementor on Wordpress
Peter Palme 高 彼特
 
Web forms and server side scripting
sawsan slii
 
Active Server Page(ASP)
Keshab Nath
 
Manage sms in realtime with magento 2 sms notification extension
MageDelight
 
Ad

Similar to Servelts Jsp By Sai Butchi (20)

ODP
servlet 2.5 & JSP 2.0
megrhi haikel
 
PPTX
Server side programming
javed ahmed
 
DOCX
Bt0083, server side programming theory
smumbahelp
 
PPTX
Java Server Pages(jsp)
Manisha Keim
 
PDF
Jsp2 ch5
MBommareddy
 
PDF
spring Boot Tutorial Part 1(JPA&Hibernate)
abdelr7man3mad2004
 
PPT
Presentation on java servlets
Aamir Sohail
 
PPTX
JAVA SERVER PAGES
Kalpana T
 
PPT
Introduction to the Servlet / JSP course
JavaEE Trainers
 
PPTX
Jsp and Servlets
Raghu nath
 
PPTX
Servlet session 1
Anuj Singh Rajput
 
PPT
Atul & shubha goswami jsp
Atul Giri
 
PPTX
Jsp basic
Jaya Kumari
 
PPT
Ecom 1
Santosh Pandey
 
PPTX
Servlet.pptx
Senthil Kumar
 
PPTX
Servlet.pptx
SenthilKumar571813
 
PPTX
BITM3730Week12.pptx
MattMarino13
 
PPTX
Dynamic web pages in java
vishal choudhary
 
PPTX
JavaScript, often abbreviated as JS, is a programming language and core techn...
MathivananP4
 
PDF
(Ebook) Java server Pages by Hans Bergsten ISBN 9781565927469, 156592746X
cantelbredda
 
servlet 2.5 & JSP 2.0
megrhi haikel
 
Server side programming
javed ahmed
 
Bt0083, server side programming theory
smumbahelp
 
Java Server Pages(jsp)
Manisha Keim
 
Jsp2 ch5
MBommareddy
 
spring Boot Tutorial Part 1(JPA&Hibernate)
abdelr7man3mad2004
 
Presentation on java servlets
Aamir Sohail
 
JAVA SERVER PAGES
Kalpana T
 
Introduction to the Servlet / JSP course
JavaEE Trainers
 
Jsp and Servlets
Raghu nath
 
Servlet session 1
Anuj Singh Rajput
 
Atul & shubha goswami jsp
Atul Giri
 
Jsp basic
Jaya Kumari
 
Servlet.pptx
Senthil Kumar
 
Servlet.pptx
SenthilKumar571813
 
BITM3730Week12.pptx
MattMarino13
 
Dynamic web pages in java
vishal choudhary
 
JavaScript, often abbreviated as JS, is a programming language and core techn...
MathivananP4
 
(Ebook) Java server Pages by Hans Bergsten ISBN 9781565927469, 156592746X
cantelbredda
 
Ad

Recently uploaded (20)

PPTX
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
PPTX
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PDF
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PPTX
Role Of Python In Programing Language.pptx
jaykoshti048
 
PPTX
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
PDF
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PDF
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
PDF
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PPTX
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PDF
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
PDF
Teaching Reproducibility and Embracing Variability: From Floating-Point Exper...
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
PDF
Bandai Playdia The Book - David Glotz
BluePanther6
 
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
Role Of Python In Programing Language.pptx
jaykoshti048
 
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
Explanation about Structures in C language.pptx
Veeral Rathod
 
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
Activate_Methodology_Summary presentatio
annapureddyn
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
Teaching Reproducibility and Embracing Variability: From Floating-Point Exper...
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
Bandai Playdia The Book - David Glotz
BluePanther6
 

Servelts Jsp By Sai Butchi

  • 1. Understanding Servlet and JSP By SaiButchiBabuManepalli www.msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem 1
  • 2.  Introduction: This chapter gives you an overview of Servlets and JSP’s and the interaction between the Client and the Server. 2 Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem
  • 3.  Objective: After completing this chapter you will be able to: ◦ Know the functions of web server and clients ◦ Explain how clients and servers interact ◦ Define the simple request/response sequence of HTTP ◦ Explain and explore the usage of Servlets and JSPs 3 Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem
  • 4.  Web Server collects the request from the client, processes them and generates a response which has to be given back to the client  Client lets the user send request and shows the result of the request.  Clients and server communicates through HTML and HTTP  HTTP is the language/protocol that clients and servers use to communicate  Browser understand the HTML and generates the GUI accordingly 4 Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem
  • 6.  Initially the user requests for a resource by typing the URL in the browser.  Web browser send the request containing header information to the server  Server searches for the requested resource. The resource can be an HTML file, pdf file  The server sends the found resource to the web browser  The Web browser interprets the HTML text and converts it into GUI and displays it to the user 6 Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem
  • 8. Web server has the following limitations: ◦ Cannot serve request for dynamic pages directly ◦ Cannot be used to save data into a database or file  How to overcome these server issues ?  Web Server makes use of helper application to serve issues like dynamic content, save data into Database  Helper application can be CGI (Common Gateway Interface), Servlets  The helper applications like Servlets does the computation job for the web server and returns the result back to the Web server  The dynamic page that uses Java code is called JSP (Java Server Pages) 8 Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem
  • 9. 9 SERVLET 2. Web Server uses the Servlet for help regarding preparation of dynamic data 1. Request the Web server to display a dynamic page 3. Populates the page with dynamic data and sends it to the Web server as if it is a static page 4. The page is given to the browser for display Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem
  • 10. 1. The language/protocol that clients and servers use to communicate: a) TCP b) IP c) HTTP d) WAP 10 Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem
  • 11.  Web Server collects the request from the client, processes them and generates a response which has to be given back to the client.  Clients and server communicates through HTML and HTTP.  Web Server makes use of an helper application like Servlets to process the request for dynamic Web pages or to save data in the database.  JSPs are dynamic pages that can make use of java code. 11Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem
  • 12.  Reference books: ◦ Head First Servlet and JSP ◦ SCWCD Exam Kit –Hanumanth deshmukh  Reference Web Site: ◦ http://www.coreservlets.com ◦ http://javapassion.com ◦ http://www.javaranch.com 12 Sai NagaVenkata BuchiBabu Manepalli msnvbbabu.blogspot.com FB.com/IdeaForAnyProblem