Getting Started withWeb Applications
Getting Started withWeb Applications
Getting Started with Web Applications
A web application is a dynamic extension of a web or application server. There are two types of
web applications:
Presentation-oriented
: A presentation-oriented web application generates interactive web
pages containing various types of markup language (HTML, XML, and so on) and dynamic
content in response to requests. Chapters
through
cover how to develop
presentation-oriented web applications.
Service-oriented
: A service-oriented web application implements the endpoint of a web
service. Presentation-oriented applications are often clients of service-oriented web
applications. Chapters
and
cover how to develop service-oriented web
applications.
Web Applications
In the Java 2 platform, web components provide the dynamic extension capabilities for a web
server. Web components are either Java servlets, JSP pages, or web service endpoints. The
interaction between a web client and a web application is illustrated in
sends an HTTP request to the web server. A web server that implements Java Servlet and
JavaServer Pages technology converts the request into an HTTPServletRequest object. This
object is delivered to a web component, which can interact with JavaBeans components or a
database to generate dynamic content. The web component can then generate an
HTTPServletResponse
or it can pass the request to another web component. Eventually a web
component generates a HTTPServletResponse object. The web server converts this object to an
HTTP response and returns it to the client.
3
C H A P T E R
3
77