org.apache.taglibs.i18n
Class ResourceHelper

java.lang.Object
  extended by org.apache.taglibs.i18n.ResourceHelper

public class ResourceHelper
extends java.lang.Object

This class is used by the bundle and message tags for caching the ResourceBundle in the session and request.

Author:
Tim Dawson

Field Summary
static java.lang.String BUNDLE_REQUEST_KEY
           
 
Constructor Summary
ResourceHelper()
           
 
Method Summary
static java.util.ResourceBundle getBundle(javax.servlet.jsp.PageContext pageContext)
          Retrieves the bundle cached in the page by a previous call to getBundle(PageContext,String).
static void setBundle(javax.servlet.jsp.PageContext pageContext, java.util.ResourceBundle bundle, int scope)
          Caches the Bundle in the request using the BUNDLE_REQUEST_KEY.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_REQUEST_KEY

public static final java.lang.String BUNDLE_REQUEST_KEY
See Also:
Constant Field Values
Constructor Detail

ResourceHelper

public ResourceHelper()
Method Detail

getBundle

public static java.util.ResourceBundle getBundle(javax.servlet.jsp.PageContext pageContext)
Retrieves the bundle cached in the page by a previous call to getBundle(PageContext,String). This is used by the MessageTag since the bundle name is provided once, by the BundleTag.

Returns:
java.util.ResourceBundle the cached bundle

setBundle

public static void setBundle(javax.servlet.jsp.PageContext pageContext,
                             java.util.ResourceBundle bundle,
                             int scope)
Caches the Bundle in the request using the BUNDLE_REQUEST_KEY.



Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.