JSP.B.1 Delivering Localized Content


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.



Java 2 Platform, Enterprise Edition. Platform and Component Specifications
Java 2 Platform, Enterprise Edition: Platform and Component Specifications
ISBN: 0201704560
EAN: 2147483647
Year: 2000
Pages: 399

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net