|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleTagSupport
AbstractSimpleTag
ErrorBaseTag
public abstract class ErrorBaseTag
Field Summary | |
---|---|
protected String |
_bundle
The message bundle where the error messages can be found. |
protected String |
_locale
The session attribute key for the locale. |
protected static Locale |
defaultLocale
The default locale on our server. |
Constructor Summary | |
---|---|
ErrorBaseTag()
|
Method Summary | |
---|---|
protected String |
getErrorMessage(ActionError report,
String bundle)
|
protected String |
getQualifiedBundleName(String bundleName)
Qualify the given bundle name with the current module path to return a full bundle name. |
protected static boolean |
isMissingUserDefaultMessages(PageContext pageContext)
Tell whether the current page flow has no default message bundle defined. |
void |
setBundle(String bundle)
Set the name of the message bundle. |
void |
setLocale(String locale)
Set the name of the locale attribute. |
Methods inherited from class AbstractSimpleTag |
---|
addTagIdMapping, getBufferBody, getInlineError, getPageContext, getScriptReporter, getTagName, getUserLocale, hasErrors, registerTagError, registerTagError, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write |
Methods inherited from class SimpleTagSupport |
---|
doTag, findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Locale defaultLocale
protected String _bundle
protected String _locale
Constructor Detail |
---|
public ErrorBaseTag()
Method Detail |
---|
public final void setBundle(String bundle) throws JspException
bundle
- - the bundle name
JspException
public final void setLocale(String locale)
locale
- - the locale attribute nameprotected String getQualifiedBundleName(String bundleName)
protected String getErrorMessage(ActionError report, String bundle) throws JspException
report
- bundle
-
JspException
protected static boolean isMissingUserDefaultMessages(PageContext pageContext)
true
if the current page flow (Struts module) has no user-specified default message bundle.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |