A P P E N D I X
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!
Delivering Localized Content
The definition in Section 2.7.4 enables but does not mandate the following implementation
Translate the JSP page into a Servlet class source using the character encoding of the JSP
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
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.