Errors Class

com.bea.wlw.netui.tags.html
Errors Class

public class Errors

    extends AbstractBaseTag

Renders the set of error messages found in the ActionErrors 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:

Attribute Descriptions
AttributeRequiredRuntime Expression EvaluationData Bindable
bundleNoNoNo
The message bundle where the error messages can be found
localeNoNoNo
The session attribute key for the locale

Related Topics

Form Validation Sample
Error


Hierarchy
Object
  TagSupport
    BodyTagSupport
      AbstractBaseTag
        Errors
All Implemented Interfaces

BodyTag, IterationTag, Serializable, Tag

Field Summary

protected String
bundle
The message bundle where the error messages can be found.
protected static Locale
defaultLocale
The default locale on our server.
protected String
locale
The session attribute key for the locale.
   
Fields from  com.bea.wlw.netui.tags.AbstractBaseTag
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, CLASS, ID, JAVASCRIPT_STATUS, NAME, NETUI_UNIQUE_CNT, ONCLICK, ONDBLCLICK, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, STYLE, TABINDEX
 
Fields from  javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields from  javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 

Constructor Summary

Errors()

 

Method Summary

public int
doStartTag()
Render the specified error messages if there are any.
public String
getBundle()
Returns the name of the message bundle.
public String
getLocale()
Returns the name of the locale attribute.
public String
getTagName()
Return the name of the Tag.
protected void
localRelease()
Release any acquired resources.
public void
setBundle(String bundle)
Set the name of the message bundle.
public void
setLocale(String locale)
Set the name of the locale attribute.
 
Methods from  com.bea.wlw.netui.tags.AbstractBaseTag
addTagIdMapping, evaluateAttributeToString, filter, filter, getJavaScriptUtils, getNearestForm, getScriptReporter, getUserLocale, registerTagError, release, renderAttribute, rewriteName, write
 
Methods from  javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods from  javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface javax.servlet.jsp.tagext.BodyTag
doInitBody, setBodyContent
 
Methods from interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
 
Methods from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Field Detail

bundle

protected String bundle
The message bundle where the error messages can be found. This defaults to org.apache.struts.action.Action.MESSAGES_KEY.


defaultLocale

protected static Locale defaultLocale
The default locale on our server.


locale

protected String locale
The session attribute key for the locale. This defaults to org.apache.struts.action.Action.LOCALE_KEY.

 

Constructor Detail

Errors

public Errors()
 

Method Detail

doStartTag() Method

public int doStartTag()
throws JspException
Render the specified error messages if there are any.

Overrides
BodyTagSupport.doStartTag()

Exceptions

JspException
if a JSP exception has occurred

getBundle() Method

public String getBundle()
Returns the name of the message bundle.

Returns

the bundle's name

getLocale() Method

public String getLocale()
Returns the name of the locale attribute.

Returns

the locale attribute name

getTagName() Method

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

Overrides
AbstractBaseTag.getTagName()

localRelease() Method

protected void localRelease()
Release any acquired resources.

Overrides
AbstractBaseTag.localRelease()

setBundle(String) Method

public void setBundle(String bundle)
Set the name of the message bundle.

Parameters

bundle
- the bundle name

setLocale(String) Method

public void setLocale(String locale)
Set the name of the locale attribute.

Parameters

locale
- the locale attribute name