biz.c24.io.api.web
Class ErrorsTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
biz.c24.io.api.web.ErrorsTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class ErrorsTag
- extends javax.servlet.jsp.tagext.TagSupport
A tag library which creates a table displaying the validation errors thrown by the specified object.
The tag library descriptor should contain the following entry:
<tag>
<name>tag name</name>
<tagclass>biz.c24.io.api.web.ErrorsTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>object</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>jspName</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
- See Also:
- Serialized Form
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 |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorsTag
public ErrorsTag()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
getObject
public ComplexDataObject getObject()
- Returns the object.
- Returns:
- The object.
setObject
public void setObject(ComplexDataObject object)
- Sets the object.
- Parameters:
object
- The object.
getJspName
public String getJspName()
- Returns the name of the calling JSP.
- Returns:
- The jsp name.
setJspName
public void setJspName(String jspName)
- Sets the name of the calling JSP.
- Parameters:
jspName
- The jsp name.
C24 Technologies © 2002-2012: All Rights Reserved.