|
|
|
Before getting into the details of JSP and Resin, let's
Users will access the new JSP page using their browser just as they did when trying to access a static HTML page. Most of the differences between these two scenarios is the process occurring at the server. Figure 3.1 shows how the server handles the JSP page request.
Figure 3.1:
Handling a JSP page request.
The process starts with the
The other piece of software in this process is the application server—in our case, Resin. We use Resin for both the Web and JSP part of the processing performed by the server machine. The Resin server examines the
As you might expect, the first time a JSP file is requested by a user, the response time is slightly long as opposed to subsequent fetches. On the
|
|
|
|
|
|
The Resin server provides complete support for JSP
1.2 as defined in the Sun specification. All JSP pages must have
template text, the HTML, and JSP actions represented by various
tags and Java code. In the best cases, the JSP page consists of the
<HTML> tags necessary to create the look and feel of the
page, and JSP actions are used to execute code defined in both Java
classes and JavaBeans. By
Once Resin has been installed on your machine, it creates a directory called /doc to hold sample Web pages for smaller Web sites. For Web applications, the installation creates a directory called /webapps directory. This directory is designed to hold all of the Web applications and pages hosted by the server. In most cases, Resin creates separate directories for each individual site or application.
|
|
|