org.apache.taglibs.regexp
Class GroupTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.regexp.GroupTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class GroupTag
- extends javax.servlet.jsp.tagext.TagSupport
JSP Tag group, used to output the value for a single
parenthesized group within a single match.
The parenthesized group number attribute must be set.
Must be nested inside a match tag.
JSP Tag Lib Descriptor
<name>group</name>
<tagclass>org.apache.taglibs.regexp.GroupTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Get the value of a single parenthesized group within a single match.</info>
<attribute>
<name>number</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
- Author:
- Glenn Nielsen
- See Also:
MatchTag
,
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 |
Method Summary |
int |
doEndTag()
Method called at end of Tag to output group value |
void |
setNumber(int number)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doStartTag, 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 |
GroupTag
public GroupTag()
doEndTag
public final int doEndTag()
throws javax.servlet.jsp.JspException
- Method called at end of Tag to output group value
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
- Returns:
- EVAL_PAGE
- Throws:
javax.servlet.jsp.JspException
setNumber
public final void setNumber(int number)
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.