<%@ taglib uri="http://jakarta.apache.org/taglibs/i18n-1.0" prefix="i18n" %> <%@ page contentType="text/html; charset=utf-8" %> Examples of I18N Custom Tag Library Tag Usage The i18n tag library contains tags to support internationalization and localization.

The bundle tag provides no HTML output; it simply sets the bundle used by the rest of the i18n tags on the page. A baseName must be provided, and a locale is optional.

For this page, the locale has been provided as a runtime expression value that happens to be hardcoded to Locale.US. Any object could have been provided, for example, a database lookup could have been used.


<%@ include file="message.jsf" %>
<%@ include file="ifdef.jsf" %>
<%@ include file="ifndef.jsf" %>
Response encoding = <%= response.getCharacterEncoding() %>
Response locale = <%= response.getLocale() %>