|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
jp.terasoluna.fw.web.struts.taglib.IfNotErrorsTag
public class IfNotErrorsTag
Implementation class of ifNotErrors tag.
Outputs the body part of tag when there is no input check error and error information is not set in the output parameter.
When there is a error in the standardized process method of Struts, error information list is set in
"Request" or "Session" attribute.
In IfNotErrorsTag
tag, "Request" or "Session" attribute is checked. When error information list is not set in "Request" or "Session", body part is output.
When error information list is set in "Request" or "Session" attribute, body part is simply ignored.
On the contrary to IfNotErrorsTag tag, when there is a error
and body part needs to be output,IfErrorsTag tag should be used.
There is no attribute set by this tag.
There is no scripting variable which is set by this tag.
<ts:ifNotErrors >
... // Display items when there is no error
</ts:ifNotErrors>
| Field Summary | |
|---|---|
private static long |
serialVersionUID
Serial version ID |
| 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 | |
|---|---|
IfNotErrorsTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Method which is called at the time of terminating tag evaluation. |
int |
doStartTag()
Method which is called at the time of starting tag evaluation. When error information list is not set in "Request" or "Sesion", body part is output. When it is set, body part is skipped. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, 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 |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public IfNotErrorsTag()
| Method Detail |
|---|
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - JSP exception
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - JSP exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||