org.apache.taglibs.regexp
Class GroupTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.taglibs.regexp.GroupTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, 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

Field Summary
 
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
GroupTag()
           
 
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
 

Constructor Detail

GroupTag

public GroupTag()
Method Detail

doEndTag

public final int doEndTag()
                   throws javax.servlet.jsp.JspException
Method called at end of Tag to output group value

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.