|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleTagSupport
AbstractSimpleTag
ErrorBaseTag
Error
public class Error
Renders an error message with a given error key if that key can be found in the
ActionMessages registered in the pageContext
at
org.apache.struts.action.Action.ERROR_KEY
. Error ignores its body content.
The following optional message keys will be utilized if corresponding messages exist for them in the application resources:
<netui:error bundleName="errorMessages" key="InvalidName"/>
Field Summary |
---|
Fields inherited from class ErrorBaseTag |
---|
_bundleName, _locale, defaultLocale |
Constructor Summary | |
---|---|
Error()
|
Method Summary | |
---|---|
void |
doTag()
Render the specified error message if it can be found. |
String |
getTagName()
Return the name of the Tag. |
void |
setKey(String key)
Set the key under which the error was stored (often the name of the form bean property associated with the error). |
Methods inherited from class ErrorBaseTag |
---|
getErrorMessage, getQualifiedBundleName, isMissingUserDefaultMessages, isMissingUserDefaultMessages, setBundle, setBundleName, setLocale |
Methods inherited from class AbstractSimpleTag |
---|
getBufferBody, getHtmlTag, getIdForTagId, getInlineError, getPageContext, getScriptReporter, getUserLocale, hasErrors, registerTagError, registerTagError, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write |
Methods inherited from class SimpleTagSupport |
---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Error()
Method Detail |
---|
public String getTagName()
getTagName
in interface INetuiTag
getTagName
in class AbstractSimpleTag
public void setKey(String key) throws JspException
key
- - the key under which the error was stored
JspException
public void doTag() throws JspException
doTag
in interface SimpleTag
doTag
in class SimpleTagSupport
JspException
- if a JSP exception has occurred
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |