org.apache.taglibs.request
Class ParameterValuesTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.request.ParameterValuesTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class ParameterValuesTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
JSP Tag parameterValues, used to get HTTP parameter values for
parameters which have multiple values
using the standard JSP <jsp:getProperty> tag.
The script variable of name id is availble only within the
body of the parameterValues tag.
Loops through all the parameter values for a parameter.
Must be nested within a parameters tag.
JSP Tag Lib Descriptor
<name>parameterValues</name>
<tagclass>org.apache.taglibs.request.ParameterValuesTag</tagclass>
<teiclass>org.apache.taglibs.request.ParameterValuesTEI</teiclass>
<bodycontent>JSP</bodycontent>
<info>Used to get the name and values of a single parameter.</info>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
- Author:
- Glenn Nielsen
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 |
doAfterBody()
Method called at end of each parameterValues tag. |
int |
doEndTag()
Method called at end of Tag |
int |
doStartTag()
Gets the parameter values for the current parameter. |
java.lang.String |
getValue()
Returns the value of the parameter. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
ParameterValuesTag
public ParameterValuesTag()
doStartTag
public final int doStartTag()
throws javax.servlet.jsp.JspException
- Gets the parameter values for the current parameter.
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- SKIP_BODY if no parameter values exist, EVAL_BODY_TAG if parameter values exist
- Throws:
javax.servlet.jsp.JspException
doAfterBody
public final int doAfterBody()
throws javax.servlet.jsp.JspException
- Method called at end of each parameterValues tag.
- Specified by:
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
- Overrides:
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- EVAL_BODY_TAG if there is another parameter value, or SKIP_BODY if there are no more parameter values
- Throws:
javax.servlet.jsp.JspException
doEndTag
public final int doEndTag()
throws javax.servlet.jsp.JspException
- Method called at end of Tag
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- EVAL_PAGE
- Throws:
javax.servlet.jsp.JspException
getValue
public final java.lang.String getValue()
- Returns the value of the parameter.
<jsp:getProperty name="id" property="value"/>
- Returns:
- String - value of the parameter
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.