Name
LocaleSupport
Synopsis
The LocaleSupport
class can be used by a tag handler to get
a localized message from a resource bundle.
Synopsis
Class name: |
|
Extends: |
None |
Implements: |
None |
Methods
-
public static String getLocalizedMessage(javax.servlet.jsp.PageContext p,
String key)
Returns the message matching the key from the resource bundle and
locale specified by the localization context setting, or
???
key
???
if the key isn’t found.
-
public static String getLocalizedMessage(javax.servlet.jsp.PageContext p,
String key, String basename)
Returns the message matching the key from the specified resource
bundle and the locale specified by the locale context setting or the
localization context setting, or
???
key
???
if the key isn’t found.
-
public static String getLocalizedMessage(javax.servlet.jsp.PageContext p,
String key, Object[] params)
Returns the parameterized message matching the key from the resource
bundle and locale specified by the localization context setting, or
???
key
???
if the key isn’t found.
-
public static String getLocalizedMessage(javax.servlet.jsp.PageContext p,
String key, Object[] params, String basename)
Returns the parameterized message matching the key from the specified
resource bundle and the locale specified by the locale context
setting or the localization context setting, or
???
key
???
if the key isn’t found.
Get JavaServer Pages, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.