org.apache.strutsel.taglib.html
Class ELErrorsTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.struts.taglib.html.ErrorsTag
          extended byorg.apache.strutsel.taglib.html.ELErrorsTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ELErrorsTag
extends org.apache.struts.taglib.html.ErrorsTag

Custom tag that renders error messages if an appropriate request attribute has been created. The tag looks for a request attribute with a reserved key, and assumes that it is either a String, a String array, containing message keys to be looked up in the module's MessageResources, or an object of type org.apache.struts.action.ActionErrors.

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

This class is a subclass of the class org.apache.struts.taglib.html.ErrorsTag which provides most of the described functionality. This subclass allows all attribute values to be specified as expressions utilizing the JavaServer Pages Standard Library expression language.

Version:
$Rev: 123585 $
See Also:
Serialized Form

Field Summary
private  java.lang.String bundleExpr
          Instance variable mapped to "bundle" tag attribute.
private  java.lang.String footerExpr
          Instance variable mapped to "footer" tag attribute.
private  java.lang.String headerExpr
          Instance variable mapped to "header" tag attribute.
private  java.lang.String localeExpr
          Instance variable mapped to "locale" tag attribute.
private  java.lang.String nameExpr
          Instance variable mapped to "name" tag attribute.
private  java.lang.String prefixExpr
          Instance variable mapped to "prefix" tag attribute.
private  java.lang.String propertyExpr
          Instance variable mapped to "property" tag attribute.
private  java.lang.String suffixExpr
          Instance variable mapped to "suffix" tag attribute.
 
Fields inherited from class org.apache.struts.taglib.html.ErrorsTag
bundle, defaultLocale, footer, header, lineEnd, locale, messages, name, prefix, property, suffix
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ELErrorsTag()
           
 
Method Summary
 int doStartTag()
          Process the start tag.
private  void evaluateExpressions()
          Processes all attribute values which use the JSTL expression evaluation engine to determine their values.
 java.lang.String getBundleExpr()
          Getter method for "bundle" tag attribute.
 java.lang.String getFooterExpr()
          Getter method for "footer" tag attribute.
 java.lang.String getHeaderExpr()
          Getter method for "header" tag attribute.
 java.lang.String getLocaleExpr()
          Getter method for "locale" tag attribute.
 java.lang.String getNameExpr()
          Getter method for "name" tag attribute.
 java.lang.String getPrefixExpr()
          Getter method for "prefix" tag attribute.
 java.lang.String getPropertyExpr()
          Getter method for "property" tag attribute.
 java.lang.String getSuffixExpr()
          Getter method for "suffix" tag attribute.
 void release()
          Resets attribute values for tag reuse.
 void setBundleExpr(java.lang.String bundleExpr)
          Setter method for "bundle" tag attribute.
 void setFooterExpr(java.lang.String footerExpr)
          Setter method for "footer" tag attribute.
 void setHeaderExpr(java.lang.String headerExpr)
          Setter method for "header" tag attribute.
 void setLocaleExpr(java.lang.String localeExpr)
          Setter method for "locale" tag attribute.
 void setNameExpr(java.lang.String nameExpr)
          Setter method for "name" tag attribute.
 void setPrefixExpr(java.lang.String prefixExpr)
          Setter method for "prefix" tag attribute.
 void setPropertyExpr(java.lang.String propertyExpr)
          Setter method for "property" tag attribute.
 void setSuffixExpr(java.lang.String suffixExpr)
          Setter method for "suffix" tag attribute.
 
Methods inherited from class org.apache.struts.taglib.html.ErrorsTag
getBundle, getFooter, getHeader, getLocale, getName, getPrefix, getProperty, getSuffix, setBundle, setFooter, setHeader, setLocale, setName, setPrefix, setProperty, setSuffix
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleExpr

private java.lang.String bundleExpr
Instance variable mapped to "bundle" tag attribute. (Mapping set in associated BeanInfo class.)


footerExpr

private java.lang.String footerExpr
Instance variable mapped to "footer" tag attribute. (Mapping set in associated BeanInfo class.)


headerExpr

private java.lang.String headerExpr
Instance variable mapped to "header" tag attribute. (Mapping set in associated BeanInfo class.)


localeExpr

private java.lang.String localeExpr
Instance variable mapped to "locale" tag attribute. (Mapping set in associated BeanInfo class.)


nameExpr

private java.lang.String nameExpr
Instance variable mapped to "name" tag attribute. (Mapping set in associated BeanInfo class.)


prefixExpr

private java.lang.String prefixExpr
Instance variable mapped to "prefix" tag attribute. (Mapping set in associated BeanInfo class.)


propertyExpr

private java.lang.String propertyExpr
Instance variable mapped to "property" tag attribute. (Mapping set in associated BeanInfo class.)


suffixExpr

private java.lang.String suffixExpr
Instance variable mapped to "suffix" tag attribute. (Mapping set in associated BeanInfo class.)

Constructor Detail

ELErrorsTag

public ELErrorsTag()
Method Detail

getBundleExpr

public java.lang.String getBundleExpr()
Getter method for "bundle" tag attribute. (Mapping set in associated BeanInfo class.)


getFooterExpr

public java.lang.String getFooterExpr()
Getter method for "footer" tag attribute. (Mapping set in associated BeanInfo class.)


getHeaderExpr

public java.lang.String getHeaderExpr()
Getter method for "header" tag attribute. (Mapping set in associated BeanInfo class.)


getLocaleExpr

public java.lang.String getLocaleExpr()
Getter method for "locale" tag attribute. (Mapping set in associated BeanInfo class.)


getNameExpr

public java.lang.String getNameExpr()
Getter method for "name" tag attribute. (Mapping set in associated BeanInfo class.)


getPrefixExpr

public java.lang.String getPrefixExpr()
Getter method for "prefix" tag attribute. (Mapping set in associated BeanInfo class.)


getPropertyExpr

public java.lang.String getPropertyExpr()
Getter method for "property" tag attribute. (Mapping set in associated BeanInfo class.)


getSuffixExpr

public java.lang.String getSuffixExpr()
Getter method for "suffix" tag attribute. (Mapping set in associated BeanInfo class.)


setBundleExpr

public void setBundleExpr(java.lang.String bundleExpr)
Setter method for "bundle" tag attribute. (Mapping set in associated BeanInfo class.)


setFooterExpr

public void setFooterExpr(java.lang.String footerExpr)
Setter method for "footer" tag attribute. (Mapping set in associated BeanInfo class.)


setHeaderExpr

public void setHeaderExpr(java.lang.String headerExpr)
Setter method for "header" tag attribute. (Mapping set in associated BeanInfo class.)


setLocaleExpr

public void setLocaleExpr(java.lang.String localeExpr)
Setter method for "locale" tag attribute. (Mapping set in associated BeanInfo class.)


setNameExpr

public void setNameExpr(java.lang.String nameExpr)
Setter method for "name" tag attribute. (Mapping set in associated BeanInfo class.)


setPrefixExpr

public void setPrefixExpr(java.lang.String prefixExpr)
Setter method for "prefix" tag attribute. (Mapping set in associated BeanInfo class.)


setPropertyExpr

public void setPropertyExpr(java.lang.String propertyExpr)
Setter method for "property" tag attribute. (Mapping set in associated BeanInfo class.)


setSuffixExpr

public void setSuffixExpr(java.lang.String suffixExpr)
Setter method for "suffix" tag attribute. (Mapping set in associated BeanInfo class.)


release

public void release()
Resets attribute values for tag reuse.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

evaluateExpressions

private void evaluateExpressions()
                          throws javax.servlet.jsp.JspException
Processes all attribute values which use the JSTL expression evaluation engine to determine their values.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred


Copyright ? 2000-2005 - The Apache Software Foundation