A P P E N D I X
B
Implementation Notes
This appendix provides implementation notes on the JSP technology. The notes are not 
normative and should only reinforce information described elsewhere.  In particular, smarter 
but valid implementations are always welcome!
B.1
Delivering Localized Content
The definition in Section 2.7.4 enables but does not mandate the following implementation 
strategy:
Translate the JSP page into a Servlet class source using the character encoding of the JSP 
page
Compile the Servlet source using the  encoding switch. This produces a Servlet class file 
that has a number of (probably static) Unicode strings.
Run the Servlet with the JspWriter configured to generate output in the encoding of the 
JSP page.
B.2
Processing TagLib directives
A strict 1 pass implementation would make custom actions visible only after their 
corresponding taglib directive appears.  But this semantics can lead to the situation where a 
JSP page author is staring at a JSP page fragment with the assumption that a taglib directive 
appears before, when it really is included after.  The semantics of Section 2.7.7 are designed 
to support an efficient implementation while minimizing JSP page author mistakes.
138




JSP Web Hosting JavaServer Pages Specifications JSP Hosting




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