Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 28

Web Technologies

Web Container

Wasif Hamdani
HTTP Methods

2
HTTP Methods

3
HTTP Methods

4
HTTP Methods

The server side script process.cgi processes the


passed data and sends the following response:

5
HTTP Methods

6
HTTP Methods

7
HTTP Methods

8
HTTP Methods

9
Web Containers
• Web Server:
• Web content lives on web servers.

• Web servers speak the HTTP protocol also called HTTP


servers.

• Web servers store the Internet’s data and provide the


data when it is requested by HTTP clients.

• The clients send HTTP requests to servers, and servers


return the requested data in HTTP responses.
Web Containers
• Web Server:

• The most common client is a web browser, such


as MS Internet Explorer or Google Chrome.

• Web browsers request HTTP objects from servers


and display the objects on your screen.
Web Containers
Web Containers

• A web container is the component of a web server


that interacts with Java servlets.

• Manages the life cycle of servlets;

• It maps a URL to a particular servlet while ensuring


that the requester has relevant access-rights.
13
Web Containers

• The web container implements the web


component aspect of the Java engineering
architecture.

• It specifies a run time environment for various


components such as security, concurrency,
transaction, and deployment.
14
Web Containers

15
Web Containers

• Servlet:
• Java programs that runs on the Java-enabled web
server or application server.

• They are used to handle the request obtained from


the web server, process the request, produce the
response, then send response back to the web server.

16
Web Containers

• Properties of Servlets:
– Servlets work on the server-side.

– Servlets are capable of handling complex requests


obtained from web server.

17
Web Containers

• Execution of Servlets:
1. The clients send the request to the web server.
2. The web server receives the request.
3. The web server passes the request to the
corresponding servlet.
4. The servlet processes the request and generates the
response in the form of output.
5. The servlet sends the response back to the web server.
6. The web server sends the response back to the client
and the client browser displays it on the screen.

18
Web Containers

• Servlet Architecture

19
Web Containers

20
Web Containers

21
Web Containers

22
Web Containers

• Web Application:

– An application accessible from the web.

– A web application is composed of web components like


Servlet, JSP, Filter, etc. and other elements such as HTML,
CSS, and JavaScript.

– The web components typically execute in Web Server and


respond to the HTTP request.

23
Web Containers

24
Web Containers

• Java Server Pages (JSP)


– A server-side programming technology that enables
the creation of dynamic, platform-independent
method for building Web-based applications.

– JSP have access to the entire family of Java APIs,


including the JDBC API to access enterprise
databases.

25
Web Containers

• JavaBeans
– In computing based on the Java Platform, JavaBeans
are classes that encapsulate many objects into a
single object.

– They are serializable, have a zero-argument


constructor, and allow access to properties using
getter and setter methods.

26
Question(s)?

27
Thank you 

28

You might also like