org.figure8.join.control
Class I18nStrutsBundleAdapter
java.lang.Object
org.displaytag.localization.I18nStrutsAdapter
org.figure8.join.control.I18nStrutsBundleAdapter
- All Implemented Interfaces:
- org.displaytag.localization.I18nResourceProvider, org.displaytag.localization.LocaleResolver
public class I18nStrutsBundleAdapter
- extends org.displaytag.localization.I18nStrutsAdapter
This is an extension to the DisplayTag I18nStrutsAdapter. This original
implementation is not able to retrieved i18n messages that are not located
into the Struts default resource bundle (messages.properties). This new
extension allows you to specify the bundles to search for i18n messages.
- Version:
- $Revision: 1.2 $
- Author:
- Laurent Broudoux
Fields inherited from class org.displaytag.localization.I18nStrutsAdapter |
UNDEFINED_KEY |
Method Summary |
java.lang.String |
getResource(java.lang.String resourceKey,
java.lang.String defaultValue,
javax.servlet.jsp.tagext.Tag tag,
javax.servlet.jsp.PageContext pageContext)
Lookup an internationalized resource that may not be packaged
into the Struts default resource bundle. |
Methods inherited from class org.displaytag.localization.I18nStrutsAdapter |
resolveLocale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_STRING_LOCALE_BUNDLES
public static final java.lang.String PROPERTY_STRING_LOCALE_BUNDLES
- The
locale.provider.bundles
property.
- See Also:
- Constant Field Values
I18nStrutsBundleAdapter
public I18nStrutsBundleAdapter()
getResource
public java.lang.String getResource(java.lang.String resourceKey,
java.lang.String defaultValue,
javax.servlet.jsp.tagext.Tag tag,
javax.servlet.jsp.PageContext pageContext)
- Lookup an internationalized resource that may not be packaged
into the Struts default resource bundle. Use the value of "locale.provider.bundles"
property from the displaytag.properties config file to know the bundles to search
for resource.
- Specified by:
getResource
in interface org.displaytag.localization.I18nResourceProvider
- Overrides:
getResource
in class org.displaytag.localization.I18nStrutsAdapter
- See Also:
I18nResourceProvider.getResource(String, String, Tag, PageContext)
Copyright © 2005-2008 Join. All Rights Reserved.