jp.terasoluna.fw.web.struts.taglib
Class ErrorsTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.struts.taglib.html.ErrorsTag
          extended by jp.terasoluna.fw.web.struts.taglib.ErrorsTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

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

Displays error on the pop-up screen. Extends ErrorsTag of Struts. Error information that gets poped-up with <ts:messagePopup>
tag is transferred from session to request and deleted from the session.
* Note: Please note that it differs from ErrorsTag function of TERASOLUNA1.1.x.
Please note that the error information which is displayed on pop-up screen is not deleted from the session unless this tag is used.

Attribute which is supported by tag

In ErrorsTag, following attributes are supported.

Attribute name Default value Required Execution time format Overview
bundle - false true Specify the message resource name. When it is not specified, default messae resource is set.
locale - false true Specify the locale of output message. When it is not specified, default locale is used.
name - false true Specify the error key of action error individually. When it is not specified, displays the error message list which is fetched based on Globals.ERROR_KEY.
property - false true Specify the property name (form) to be displayed. When it is not specified, all action errors are displayed irrespective of property name.


Scripting variable of custom tag

There is no scripting variable set by this tag.


How to use

 <ts:errors bundle="sampleResources"
     name="normalKey" />
 

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Serial version ID
 
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
ErrorsTag()
           
 
Method Summary
 int doStartTag()
          Transfer the error information which is stored in the session to the request and perform the display process of error information on the pop-up screen.
 
Methods inherited from class org.apache.struts.taglib.html.ErrorsTag
getBundle, getFooter, getHeader, getLocale, getName, getPrefix, getProperty, getSuffix, release, 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

serialVersionUID

private static final long serialVersionUID
Serial version ID

See Also:
Constant Field Values
Constructor Detail

ErrorsTag

public ErrorsTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Transfer the error information which is stored in the session to the request and perform the display process of error information on the pop-up screen.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class org.apache.struts.taglib.html.ErrorsTag
Returns:
Process result status
Throws:
javax.servlet.jsp.JspException - JSP exception