|
||||||||||
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.taglib.WriteCodeCountTag
public class WriteCodeCountTag
Implementation class of writeCodeCount tag.
Returns the size of code list.
From the servlet context, seraches the CodeListLoader
which is specified by (id), fetches the codelist stored in it
and returns the size of that codelist.
If it is not found, returns the size as 0.
writeCodeCount tag supports the following attributes.
Attribute name | Defafult value | Required | Execution time format | Overview |
id |
- |
true |
true |
From this attribute, searches the code list loader that contains the code list. In other words, specify the name of bean which implements
CodeListLoader interface.
Returns 0 when code list is not found.
|
There is no scripting variable set by this tag.
DBCodeListLoader
,
and
MappedCodeListLoader
.
Example of description in JSP.
To fetch the code list, refer to
...
<t:writeCodeCount id="loader1" />
...
DefineCodeListTag
.
DBCodeListLoader
,
MappedCodeListLoader
,
DefineCodeListTag
,
Serialized FormField Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
Log class. |
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 | |
---|---|
WriteCodeCountTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Method which is called at the time of terminating the tag evaluation. |
int |
doStartTag()
Method which is called at the time of starting the tag evaluation. |
void |
release()
Process at the time of releasing the tag handler. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, 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 |
---|
private static final long serialVersionUID
private static org.apache.commons.logging.Log log
Constructor Detail |
---|
public WriteCodeCountTag()
Method Detail |
---|
public int doStartTag() throws javax.servlet.jsp.JspException
Searches the code list loader from the servlet context. If the code list is found, returns the element count of code list. When the code list is not found, writes 0 on the screen.
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
EVAL_BODY_INCLUDE
javax.servlet.jsp.JspException
- JSP
Exceptionpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- JSP exceptionpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |