Home » Struts-1.3.10 » org.apache.struts.taglib » html » [javadoc | source]
org.apache.struts.taglib.html
public class: ErrorsTag [javadoc | source]
java.lang.Object
   javax.servlet.jsp.tagext.TagSupport
      org.apache.struts.taglib.html.ErrorsTag

All Implemented Interfaces:
    IterationTag, Serializable

Direct Known Subclasses:
    ELErrorsTag

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:

Field Summary
protected  String bundle    The servlet context attribute key for our resources. 
protected static  Locale defaultLocale    The default locale on our server.
     
    protected static  String lineEnd    The line ending string.
       
      protected  String locale    The session attribute key for our locale. 
      protected static  MessageResources messages    The message resources for this package. 
      protected  String name    The request attribute key for our error messages (if any). 
      protected  String property    The name of the property for which error messages should be returned, or null to return all errors. 
      protected  String header    The message resource key for errors header. 
      protected  String footer    The message resource key for errors footer. 
      protected  String prefix    The message resource key for errors prefix. 
      protected  String suffix    The message resource key for errors suffix. 
      Fields inherited from javax.servlet.jsp.tagext.TagSupport:
      id,  pageContext,  class$javax$servlet$jsp$tagext$Tag
      Method from org.apache.struts.taglib.html.ErrorsTag Summary:
      doStartTag,   getBundle,   getFooter,   getHeader,   getLocale,   getName,   getPrefix,   getProperty,   getSuffix,   release,   setBundle,   setFooter,   setHeader,   setLocale,   setName,   setPrefix,   setProperty,   setSuffix
      Methods from javax.servlet.jsp.tagext.TagSupport:
      class$,   doAfterBody,   doEndTag,   doStartTag,   findAncestorWithClass,   getId,   getParent,   getValue,   getValues,   release,   removeValue,   setId,   setPageContext,   setParent,   setValue
      Methods from java.lang.Object:
      clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
      Method from org.apache.struts.taglib.html.ErrorsTag Detail:
       public int doStartTag() throws JspException 
        Render the specified error messages if there are any.
       public String getBundle() 
       public String getFooter() 
       public String getHeader() 
       public String getLocale() 
       public String getName() 
       public String getPrefix() 
       public String getProperty() 
       public String getSuffix() 
       public  void release() 
        Release any acquired resources.
       public  void setBundle(String bundle) 
       public  void setFooter(String footer) 
       public  void setHeader(String header) 
       public  void setLocale(String locale) 
       public  void setName(String name) 
       public  void setPrefix(String prefix) 
       public  void setProperty(String property) 
       public  void setSuffix(String suffix)