public class ResourceLoader extends Object
Constructor and Description |
---|
ResourceLoader() |
Modifier and Type | Method and Description |
---|---|
static String |
GetResource(javax.servlet.http.HttpSession session,
String key)
returns a localized string in the locale defined within
session.getAttribute("locale") or in the default locale, en
|
static String |
GetResource(String locale,
String key)
returns a localized string in the locale defined within locale or in
the default locale, en
|
public static String GetResource(javax.servlet.http.HttpSession session, String key) throws MissingResourceException
session
- key
- IllegalArgumentException
- if the key is nullMissingResourceException
- if the resource bundle can't be
foundpublic static String GetResource(String locale, String key) throws MissingResourceException
locale
- key
- IllegalArgumentException
- if the key is nullMissingResourceException
- if the resource bundle can't be
foundCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.