|
|||||||||
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 |
_bundleName
The name of the message bundle, as defined in the page flow's Jpf.MessageBundle annotation,
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(ActionMessage report,
String bundleName)
|
protected static boolean |
isMissingUserDefaultMessages(ModuleConfig mc)
Tell whether the given Struts module has no default message bundle defined. |
protected static boolean |
isMissingUserDefaultMessages(PageContext pageContext)
Tell whether the given Struts module has no default message bundle defined. |
void |
setBundleName(String bundleName)
Set the name of the message bundle, as defined in the page flow's Jpf.MessageBundle annotation, where the error messages
can be found. |
void |
setLocale(String locale)
Set the name of the locale attribute. |
Methods inherited from class AbstractSimpleTag |
---|
getBufferBody, getHtmlTag, getIdForTagId, 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 _bundleName
Jpf.MessageBundle
annotation,
where the error messages can be found. This defaults to org.apache.struts.action.Action.MESSAGES_KEY.
protected String _locale
Constructor Detail |
---|
public ErrorBaseTag()
Method Detail |
---|
public final void setBundleName(String bundleName) throws JspException
Jpf.MessageBundle
annotation, where the error messages
can be found. If this attribute is not set, the page flow's default message bundle is used.
bundleName
- the bundle name
JspException
public final void setLocale(String locale)
locale
- the locale attribute nameprotected String getErrorMessage(ActionMessage report, String bundleName) throws JspException
report
- bundleName
-
JspException
protected static boolean isMissingUserDefaultMessages(PageContext pageContext)
true
if the given Struts module has no user-specified default message bundle.protected static boolean isMissingUserDefaultMessages(ModuleConfig mc)
true
if the given 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 |