pass arguments for that computation.  These mechanisms can be subsumed directly into an 
empty bodied action invocation, perhaps using attributes to describe the template and/or the 
arguments for the computation.
5.1.3.5
An HTML quoting action
The final example is an action that takes its body and performs HTML quoting.  In this case, 
the 
doStartTag()
 method will save away the value of the out implicit object and request 
the evaluation of the body.  The 
doAfterBody()
 method will take the nested stream, 
perform the quoting, and send it down to the saved out stream.
5.1.3.6
A useBean as in the JSP 0.92 specification
The 0.92 public draft of the JSP specification included a version of a 
useBean
 action with 
a variation: if the Bean created included a 
processRequest(ServletRequest)
method then the method would be invoked. Observant readers will notice that a 
processRequest()
 is a special case of a 
doStartTag()
 as the request object is one of 
the objects available in 
pageContext
.
5.2
Tag Library
A 
Tag Library
 is a collection of actions that encapsulate some functionality to be used from within 
a JSP page.  A Tag library is made available to a JSP page via a 
taglib
 directive that identifies 
the Tag Library via a URI (Universal Resource Identifier).
The URI identifying a tag library may be any valid URI as long as it can be used to uniquely 
identify the semantics of the tag library.  A common mechanism is to encoding the version of 
a tag library into its URI.
The URI identifying the tag library is associated with a 
Tag Library Description
 (TLD) file 
and with 
tag handler
 classes as indicated in Section 5.3 below.
5.2.1
Packaged Tag Libraries
JSP page authoring tools are required to accept a Tag Library that is packaged as a JAR file.  
When packaged sot he JAR file must have a tag library descriptor file named META INF/
taglib.tld.
91
JavaServer Pages 1.1 Specification  
November 30, 1999




JSP Web Hosting JavaServer Pages Specifications JSP Hosting




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