org.apache.beehive.netui.tags.html
Class Errors

Object
  extended by SimpleTagSupport
      extended by AbstractSimpleTag
          extended by ErrorBaseTag
              extended by Errors
All Implemented Interfaces:
JspTag, SimpleTag, INetuiTag

public class Errors
extends ErrorBaseTag

Renders the set of error messages found in the ActionMessages registered in the pageContext at org.apache.struts.action.Action.ERROR_KEY. Errors ignores its body content.

The following optional message keys will be utilized if corresponding messages exist for them in the application resources:

Example
In this sample, the messages from the errorMessages bundle will be used to output the errors.
 <netui:errors bundleName="errorMessages" />

Field Summary
 
Fields inherited from class ErrorBaseTag
_bundleName, _locale, defaultLocale
 
Constructor Summary
Errors()
           
 
Method Summary
 void doTag()
          Render the specified error messages if there are any.
 String getTagName()
          Return the name of the Tag.
 
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

Errors

public Errors()
Method Detail

getTagName

public String getTagName()
Return the name of the Tag.

Specified by:
getTagName in interface INetuiTag
Specified by:
getTagName in class AbstractSimpleTag
Returns:
the name of the tag.

doTag

public void doTag()
           throws JspException
Render the specified error messages if there are any.

Specified by:
doTag in interface SimpleTag
Overrides:
doTag in class SimpleTagSupport
Throws:
JspException - if a JSP exception has occurred