The J2EETM Tutorial
Home
TOC
Index
PREV TOP NEXT Search
Feedback

Web Clients and Components

Stephanie Bodoff

When a Web client such as a browser communicates with a J2EE application, it does so through server-side objects called Web components. There are two types of Web components: Java Servlets and JavaServer Pages (JSP) pages. Servlets are Java programming language classes that dynamically process requests and construct responses. JSP pages are text-based documents that execute as servlets but allow a more natural approach to creating static content. Although servlets and JSP pages can be used interchangeably, each has its own strengths. Servlets are best suited to managing the control functions of an application, such as dispatching requests, and handling nontextual data. JSP pages are more appropriate for generating text-based markup such as HTML, SVG, WML, and XML.

This chapter describes the packaging, configuration, and deployment procedures for Web clients. Chapters 10 and 11, cover how to develop the Web components. Many features of JSP technology are determined by Java Servlet technology, so you should familiarize yourself with that material even if you do not intend to write servlets.

Most J2EE Web clients use the HTTP protocol and support for HTTP is a major aspect of Web components. For a brief summary of HTTP protocol features, see Appendix A.

In This Chapter

Web Client Life Cycle
Web Application Archives
Creating a WAR File
Adding a WAR File to an EAR File
Adding a Web Component to a WAR File
Configuring Web Clients
Application-Level Configuration
WAR-Level Configuration
Component-Level Configuration
Deploying Web Clients
Running Web Clients
Updating Web Clients
Internationalizing Web Clients
Home
TOC
Index
PREV TOP NEXT Search
Feedback