CHAPTER
6
JSP Technology Classes
This chapter describes the packages that are part of the JSP 1.1 specification.  The packages 
may be used in a number of situations, including within scripting elements, by base classes, 
and in implementations of Tag Extensions.
There are two packages
javax.servlet.jsp
javax.servlet.jsp.tagext
.
The javadoc documents that accompany this specification
1
 provide detailed description of the 
packages. This appendix provides an overview, context, and usage guidelines.
6.1
Package javax.servlet.jsp
The javax.servlet.jsp package contains a number of classes and interfaces that describe and 
define the contracts between a JSP page implementation class and the runtime environment 
provided for an instance of such a class by a conforming JSP container.
6.1.1
JspPage and HttpJspPage
Two interfaces describe the interaction between a class implementing a JSP page and the JSP 
container: 
HttpJspPage
 and 
JspPage
. Chapter 3 describes the role of these two interfaces in 
detail. The 
JspPage
 contract is not further described here, see the javadoc documentation 
for details.
The large majority of the JSP pages use the HTTP protocol and thus are based on the 
HttpJspPage
 contract. This interface has three methods, two of which can be redefined by 
the JSP author using a declaration scripting element:
1. All JSP related specifications are available from http://java.sun.com/products/jsp.
 JSP Technology Classes
114




JSP Web Hosting JavaServer Pages Specifications JSP Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.