Professional Documents
Culture Documents
THEMATIC UNIT I:
Introduction to Web Applications
Application Servers
ndice
1 Application Servers
Introduction
Java EE Application
Tomcat and Application Servers
Tomcat and Web Servers
A Brief History of Web Applications
2/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
Introduction
API
The term API (or application programming interface) is used by
software developers in general to describe services made available
to applica- tions by an underlying service provider
3/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
Application Servers
4/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
5/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
Web Applications
Web applications commonly include a great deal of static content,
such as images or Cascading Style Sheets (CSS).
6/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
Application Servers
CGI scripts
Server-based Java technologies: servlets, JSPs, and tag libraries
MVC architecture, and implementations (Struts, for example)
Web applications built using the preceding technologies
7/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
CGI Scripts
Was the first mechanism for serving up dynamic content to
users.
Executable applications were provided with an interface that
enabled clients to access them in a standard way over HTTP.
CGI suffered from several drawbacks:
1
2
3
Performance problem
The first two operations in the previous list can use a large number
of CPU cycles and a lot of memory.
8/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
Application Servers
Application Servers
Application Servers
Tag Libraries
These tag libraries are collections of custom tags, and each tag
corresponds to a reusable Java module.
The JSP is compiled into a servlet class the first time it is
invoked.
10/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
Apache Tomcat
Includes both the Servlet container named Catalina that executes
servlets and com- piled JSPs, and the compiler for JSP files (the
Jasper compiler).
10/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
Web container
The combination of a JSP compiler and a Servlet container is
known as a Web container
10/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
11/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
11/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
12/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
Application Servers
MVC
1
14/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
MVC
1
Server
M
M
Forwards
request
Request
Returns result
Controller
Forwards result
Returns result
to client
Returns rendered
request result
14/15
Small-scale, homegrown sites that are not based
on a framework are often a looser version of this architecture. Several servlets each take the role of a Controller and part of the Model. In this version of the
THEMATIC UNIT I: Introduction
to Web Applications
Hermes Francisco Montes Casiano
Model 2 architecture, the JSPs are still designed so that they contain very little or no logic and the serv-
Application Servers
Loose:
Several servlets each take the role of a Controller and part of
the Model.
The JSPs are still designed so that they contain very little or
no logic and the serv- lets handle all of the functions of the
application.
14/15
THEMATIC UNIT I: Introduction to Web Applications
Application Servers
15/15
THEMATIC UNIT I: Introduction to Web Applications