If your site hosts multiple visitor locales, parallel sets of content pages must be contained in locale-specific directories in the document root. If you design your site to serve content to multiple visitor locales, set up a separate page directory for each locale. Each locale-specific directory should be at the same level directly under the context root for JSPs.

All web site content pages should be mirrored for each locale, even if only a portion of the content in each directory is translated.

The following example shows the directory structure for a JSP-based web application—in this case, the Quincy Funds demo:


If you use the EncodingTyper component to determine the character encoding for the content pages, you must then configure the EncodingTyper to map each of the directories to the correct encoding. For more information, see Using the EncodingTyper to Set the Character Encoding in this chapter.