Java 2 Platform, Enterprise Edition: Platform and Component Specifications

The definition in Section JSP.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.

Категории