SlideShare una empresa de Scribd logo
1 de 14
Sasidhar
JAVA SERVLETSJAVA SERVLETS
SASIDHAR
Sasidhar
2
Web Server
A web server is a network server that manages
access to files, folders and other resources over
Internet or local Intranet via HTTP
◦ Handle permissions
◦ Execute programs
◦ Keep track of directories and files
◦ Communicate with client computers
A web server consists of a computer with:
◦ a suitable operating system
◦ a suitable file system
◦ a network connection
◦ web server software – which accepts requests from
browsers such as IE and Netscape
Sasidhar
Web Server ………
 A Web server handles the HTTP protocol.
 When the Web server receives an HTTP request, it
responds with an HTTP response, such as sending back an
HTML page.
 To process a request, a Web server may respond with a
HTML page or image, send a redirect, or delegate the
dynamic response generation to some other program such
as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs
(Active Server Pages), server-side JavaScripts, or some
other server-side technology.
 such server-side programs generate a response, most often
in HTML, for viewing in a Web browser.
.
Sasidhar
Web Server ……..
Web server's delegation model is fairly simple.
When a request comes into the Web server, the
Web server simply passes the request to the
program best able to handle it.
The Web server doesn't provide any functionality
beyond simply providing an environment in which
the server-side program can execute and pass
back the generated responses.
The server-side program usually provides for itself
such functions as transaction processing, database
connectivity, and messaging.
Sasidhar
Web Server …….
While a Web server may not itself support
transactions or database connection pooling,
it may employ various strategies for fault
tolerance and scalability such as load
balancing, caching, and clustering—features
oftentimes erroneously assigned as features
reserved only for application servers
Sasidhar
6
Web Architecture
Multi-tier architecture:
◦ Application-level or middleware: has an application
server, which is used to find requested data and
services, makes them available for viewing, and carries
out transactions.
◦ Data and service level: has a variety of data and services
accessible by the application server.
Database
server
Client computers
with web
browsers
Web server
Internet
HTTP request
HTTP response
Presentation
level
Content level
Data and
service level
Application
server
Application
level
Billing
system
Sasidhar
Application Server
Application server exposes business logic to
client applications through various protocols,
including HTTP.
Application server provides access to
business logic for use by client application
programs. The application program can use
this logic just as it would call a method on an
object (or a function in the procedural
world).
Sasidhar
Application Server
Application server clients can include GUIs
(running on a PC, a Web server, or even
other application servers.
The information traveling back and forth
between an application server and its client is
not restricted to simple display markup.
 Instead, the information is program logic.
Since the logic takes the form of data and
method calls and not static HTML, the client
can employ the exposed business logic
however it wants.
Sasidhar
Application Server
In most cases, the server exposes this
business logic through a component API,
such as the EJB (Enterprise JavaBean)
component model found on J2EE (Java 2
Enterprise Edition) application servers.
 Moreover, the application server manages
its own resources that include security,
transaction processing, resource pooling, and
messaging.
Like a Web server, an application server may
also employ various scalability and fault-
tolerance techniques.
Sasidhar
Application Server
Sasidhar
Web serversWeb servers
Internet Information Server
Personal Web Server
Java Web Server
Apache Tomcat Server
Web Logic
Sasidhar
Tomcat web serverTomcat web server
 For the deployment the steps are to be followed:
1. Put the source code for the servlet in the
Server_root/webapps/ROOT/WEB-INF/classes directory
This is a standard location for servlet class files.
2. Include server_root /lib/servlet.jar somewhere in class
path so that the two packages will be included in the class
path.
3. Compile the servlet using javac filename.java
4. After compiling start the server by looking the startup.sh
script in the server root/bin directory
Sasidhar
To access the servlet, type the URL in the
browser as (if the server is on the local machine)
http://localhost :8080/servlet/passwordcheck.
Tomcat web serverTomcat web server
Sasidhar
Introduction to servletsIntroduction to servlets
Servlet runs on the server and will respond to a
request from the client either in the form of
HTML pages, dynamic pages or indeed applets.

Más contenido relacionado

La actualidad más candente

Module – administer ca service desk
Module – administer ca service deskModule – administer ca service desk
Module – administer ca service desk
Arshad Havaldar
 
Web application-for-financial-and-economic-data-analysis3
Web application-for-financial-and-economic-data-analysis3Web application-for-financial-and-economic-data-analysis3
Web application-for-financial-and-economic-data-analysis3
Mike Taylor
 
State management
State managementState management
State management
Iblesoft
 
Internet server components
Internet server componentsInternet server components
Internet server components
Jay Patel
 

La actualidad más candente (16)

Module – administer ca service desk
Module – administer ca service deskModule – administer ca service desk
Module – administer ca service desk
 
Web application-for-financial-and-economic-data-analysis3
Web application-for-financial-and-economic-data-analysis3Web application-for-financial-and-economic-data-analysis3
Web application-for-financial-and-economic-data-analysis3
 
State management
State managementState management
State management
 
Session and state management
Session and state managementSession and state management
Session and state management
 
Websphere - Introduction to SSL part 1
Websphere  - Introduction to SSL part 1Websphere  - Introduction to SSL part 1
Websphere - Introduction to SSL part 1
 
Internet server components
Internet server componentsInternet server components
Internet server components
 
Web servers
Web serversWeb servers
Web servers
 
Web server hardware and software
Web server hardware and softwareWeb server hardware and software
Web server hardware and software
 
State management
State managementState management
State management
 
SharePoint Saturday bmore2015
SharePoint Saturday bmore2015SharePoint Saturday bmore2015
SharePoint Saturday bmore2015
 
Weblogic application server
Weblogic application serverWeblogic application server
Weblogic application server
 
05 asp.net session07
05 asp.net session0705 asp.net session07
05 asp.net session07
 
J2 ee architecture
J2 ee architectureJ2 ee architecture
J2 ee architecture
 
State Management In ASP.NET And ASP.NET MVC
State Management In ASP.NET And ASP.NET MVCState Management In ASP.NET And ASP.NET MVC
State Management In ASP.NET And ASP.NET MVC
 
Aqua presentation
Aqua presentationAqua presentation
Aqua presentation
 
State management in ASP .NET
State  management in ASP .NETState  management in ASP .NET
State management in ASP .NET
 

Destacado

Enterprise java evolució, avagy java ee (
Enterprise java evolució, avagy java ee (Enterprise java evolució, avagy java ee (
Enterprise java evolució, avagy java ee (
Attila Balogh-Biró
 
Tawajod Company profile 2015
Tawajod Company profile 2015Tawajod Company profile 2015
Tawajod Company profile 2015
Emeline Marteja
 

Destacado (16)

Kata nasihat
Kata nasihatKata nasihat
Kata nasihat
 
Spilltidslinje
SpilltidslinjeSpilltidslinje
Spilltidslinje
 
Servicio tecnico secadora Alaquas - 96.393.63.43
Servicio tecnico secadora Alaquas - 96.393.63.43Servicio tecnico secadora Alaquas - 96.393.63.43
Servicio tecnico secadora Alaquas - 96.393.63.43
 
Franchisee dealership
Franchisee   dealershipFranchisee   dealership
Franchisee dealership
 
Email sending work
Email sending workEmail sending work
Email sending work
 
Google place company listing work
Google place company listing workGoogle place company listing work
Google place company listing work
 
Appreciation Certificate
Appreciation CertificateAppreciation Certificate
Appreciation Certificate
 
BEP MG
BEP MGBEP MG
BEP MG
 
Enterprise java evolució, avagy java ee (
Enterprise java evolució, avagy java ee (Enterprise java evolució, avagy java ee (
Enterprise java evolució, avagy java ee (
 
CAP MG
CAP MGCAP MG
CAP MG
 
Informenla historia escolar.
Informenla historia escolar.Informenla historia escolar.
Informenla historia escolar.
 
Pe estimate ratgal
Pe estimate ratgalPe estimate ratgal
Pe estimate ratgal
 
Tawajod Company profile 2015
Tawajod Company profile 2015Tawajod Company profile 2015
Tawajod Company profile 2015
 
6) what have you learnt about technologies
6) what have you learnt about technologies6) what have you learnt about technologies
6) what have you learnt about technologies
 
Diapositivas trastornos
Diapositivas trastornosDiapositivas trastornos
Diapositivas trastornos
 
rukun iman
rukun iman rukun iman
rukun iman
 

Similar a Servers names

web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
20521742
 
Peoplesoft PIA architecture
Peoplesoft PIA architecturePeoplesoft PIA architecture
Peoplesoft PIA architecture
Amit rai Raaz
 
Websphereinterview 100725022705-phpapp02
Websphereinterview 100725022705-phpapp02Websphereinterview 100725022705-phpapp02
Websphereinterview 100725022705-phpapp02
kishore2526
 
0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf
Zani10
 

Similar a Servers names (20)

Unit5 servlets
Unit5 servletsUnit5 servlets
Unit5 servlets
 
Ecom 1
Ecom 1Ecom 1
Ecom 1
 
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
 
Server side programming
Server side programming Server side programming
Server side programming
 
Presentation about servers
Presentation about serversPresentation about servers
Presentation about servers
 
JAVA
JAVAJAVA
JAVA
 
Application server vs Web Server
Application server vs Web ServerApplication server vs Web Server
Application server vs Web Server
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technology
 
Bt0083 server side programing
Bt0083 server side programing Bt0083 server side programing
Bt0083 server side programing
 
Servlet by Rj
Servlet by RjServlet by Rj
Servlet by Rj
 
Peoplesoft PIA architecture
Peoplesoft PIA architecturePeoplesoft PIA architecture
Peoplesoft PIA architecture
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
 
Websphereinterview 100725022705-phpapp02
Websphereinterview 100725022705-phpapp02Websphereinterview 100725022705-phpapp02
Websphereinterview 100725022705-phpapp02
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
 
Websphere interview Questions
Websphere interview QuestionsWebsphere interview Questions
Websphere interview Questions
 
WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
 
0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf
 
UNIT-3 Servlet
UNIT-3 ServletUNIT-3 Servlet
UNIT-3 Servlet
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
 

Más de Sasidhar Kothuru

Web technologies quiz questions - unit1,2
Web technologies quiz questions  - unit1,2Web technologies quiz questions  - unit1,2
Web technologies quiz questions - unit1,2
Sasidhar Kothuru
 

Más de Sasidhar Kothuru (20)

Spsl vi unit final
Spsl vi unit finalSpsl vi unit final
Spsl vi unit final
 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
 
Spsl v unit - final
Spsl v unit - finalSpsl v unit - final
Spsl v unit - final
 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
 
Spsl v unit - final
Spsl v unit - finalSpsl v unit - final
Spsl v unit - final
 
Spsl by sasidhar 3 unit
Spsl by sasidhar  3 unitSpsl by sasidhar  3 unit
Spsl by sasidhar 3 unit
 
Spsl unit1
Spsl   unit1Spsl   unit1
Spsl unit1
 
Spsl II unit
Spsl   II unitSpsl   II unit
Spsl II unit
 
Jdbc sasidhar
Jdbc  sasidharJdbc  sasidhar
Jdbc sasidhar
 
Servlets
ServletsServlets
Servlets
 
Servers names
Servers namesServers names
Servers names
 
Web Technologies -- Servlets 4 unit slides
Web Technologies -- Servlets   4 unit slidesWeb Technologies -- Servlets   4 unit slides
Web Technologies -- Servlets 4 unit slides
 
Xml quiz 3 unit
Xml quiz   3 unitXml quiz   3 unit
Xml quiz 3 unit
 
Web technologies quiz questions - unit1,2
Web technologies quiz questions  - unit1,2Web technologies quiz questions  - unit1,2
Web technologies quiz questions - unit1,2
 
Web technologies 4th unit quiz
Web technologies 4th unit quizWeb technologies 4th unit quiz
Web technologies 4th unit quiz
 
Xml quiz 3 unit
Xml quiz   3 unitXml quiz   3 unit
Xml quiz 3 unit
 
Web technologies quiz questions - unit1,2
Web technologies quiz questions  - unit1,2Web technologies quiz questions  - unit1,2
Web technologies quiz questions - unit1,2
 
Jsp sasidhar
Jsp sasidharJsp sasidhar
Jsp sasidhar
 
Xml sasidhar
Xml  sasidharXml  sasidhar
Xml sasidhar
 
Java script -23jan2015
Java script -23jan2015Java script -23jan2015
Java script -23jan2015
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Servers names

  • 2. Sasidhar 2 Web Server A web server is a network server that manages access to files, folders and other resources over Internet or local Intranet via HTTP ◦ Handle permissions ◦ Execute programs ◦ Keep track of directories and files ◦ Communicate with client computers A web server consists of a computer with: ◦ a suitable operating system ◦ a suitable file system ◦ a network connection ◦ web server software – which accepts requests from browsers such as IE and Netscape
  • 3. Sasidhar Web Server ………  A Web server handles the HTTP protocol.  When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page.  To process a request, a Web server may respond with a HTML page or image, send a redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology.  such server-side programs generate a response, most often in HTML, for viewing in a Web browser. .
  • 4. Sasidhar Web Server …….. Web server's delegation model is fairly simple. When a request comes into the Web server, the Web server simply passes the request to the program best able to handle it. The Web server doesn't provide any functionality beyond simply providing an environment in which the server-side program can execute and pass back the generated responses. The server-side program usually provides for itself such functions as transaction processing, database connectivity, and messaging.
  • 5. Sasidhar Web Server ……. While a Web server may not itself support transactions or database connection pooling, it may employ various strategies for fault tolerance and scalability such as load balancing, caching, and clustering—features oftentimes erroneously assigned as features reserved only for application servers
  • 6. Sasidhar 6 Web Architecture Multi-tier architecture: ◦ Application-level or middleware: has an application server, which is used to find requested data and services, makes them available for viewing, and carries out transactions. ◦ Data and service level: has a variety of data and services accessible by the application server. Database server Client computers with web browsers Web server Internet HTTP request HTTP response Presentation level Content level Data and service level Application server Application level Billing system
  • 7. Sasidhar Application Server Application server exposes business logic to client applications through various protocols, including HTTP. Application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object (or a function in the procedural world).
  • 8. Sasidhar Application Server Application server clients can include GUIs (running on a PC, a Web server, or even other application servers. The information traveling back and forth between an application server and its client is not restricted to simple display markup.  Instead, the information is program logic. Since the logic takes the form of data and method calls and not static HTML, the client can employ the exposed business logic however it wants.
  • 9. Sasidhar Application Server In most cases, the server exposes this business logic through a component API, such as the EJB (Enterprise JavaBean) component model found on J2EE (Java 2 Enterprise Edition) application servers.  Moreover, the application server manages its own resources that include security, transaction processing, resource pooling, and messaging. Like a Web server, an application server may also employ various scalability and fault- tolerance techniques.
  • 11. Sasidhar Web serversWeb servers Internet Information Server Personal Web Server Java Web Server Apache Tomcat Server Web Logic
  • 12. Sasidhar Tomcat web serverTomcat web server  For the deployment the steps are to be followed: 1. Put the source code for the servlet in the Server_root/webapps/ROOT/WEB-INF/classes directory This is a standard location for servlet class files. 2. Include server_root /lib/servlet.jar somewhere in class path so that the two packages will be included in the class path. 3. Compile the servlet using javac filename.java 4. After compiling start the server by looking the startup.sh script in the server root/bin directory
  • 13. Sasidhar To access the servlet, type the URL in the browser as (if the server is on the local machine) http://localhost :8080/servlet/passwordcheck. Tomcat web serverTomcat web server
  • 14. Sasidhar Introduction to servletsIntroduction to servlets Servlet runs on the server and will respond to a request from the client either in the form of HTML pages, dynamic pages or indeed applets.