<l10n:resolve> Tag

This tag searches for a localized version of the page URL based on the current locale and resolves the URL to a localized version. If there is no locale set, this tag uses the locale from the HTTP request headers. The localized URL is always absolute.

Syntax

<tagName attribute="value" />

Attributes

id

Optional (String) - Stores the absolute URL generated. If this attribute is not used, the URL is printed to the JSP.

page

Required (String) - Path to the resource, which is relative to the current page or absolute with respect to the Web application context-root.

language

Optional (String) - Language code.

country

Optional (String) - Country code.

variant

Optional (String) - Language variant. For example, "us" (United States) is a variant of English (en).

Example

<l10n:resolve page="/l10n_content/foo.jsp" language="en" variant="gb" />

Related Topics

<l10n:forward> Tag

<l10n:include> Tag

<i18n:getMessage> Tag

<i18n:localize> Tag