Methods Summary |
---|
public static java.lang.String | getMessage(java.lang.String errCode)
try {
bundle = ResourceBundle.getBundle(
"org.apache.jasper.resources.LocalStrings");
} catch (Throwable t) {
t.printStackTrace();
}
String errMsg = errCode;
try {
errMsg = bundle.getString(errCode);
} catch (MissingResourceException e) {
}
return errMsg;
|
public static java.lang.String | getMessage(java.lang.String errCode, java.lang.String arg)
return getMessage(errCode, new Object[] {arg});
|
public static java.lang.String | getMessage(java.lang.String errCode, java.lang.String arg1, java.lang.String arg2)
return getMessage(errCode, new Object[] {arg1, arg2});
|
public static java.lang.String | getMessage(java.lang.String errCode, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3)
return getMessage(errCode, new Object[] {arg1, arg2, arg3});
|
public static java.lang.String | getMessage(java.lang.String errCode, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4)
return getMessage(errCode, new Object[] {arg1, arg2, arg3, arg4});
|
public static java.lang.String | getMessage(java.lang.String errCode, java.lang.Object[] args)
String errMsg = errCode;
try {
errMsg = bundle.getString(errCode);
if (args != null) {
MessageFormat formatter = new MessageFormat(errMsg);
errMsg = formatter.format(args);
}
} catch (MissingResourceException e) {
}
return errMsg;
|