org.apache.taglibs.request
Class ExistsQueryStringTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--org.apache.taglibs.request.ExistsQueryStringTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ExistsQueryStringTag
extends javax.servlet.jsp.tagext.TagSupport

JSP Tag existsquerystring, used to determine if an HttpServletRequest querystring parameter exists.

Includes the body of the tag if the querystring parameter exists.

You can set the optional tag querystring value to true or false. The body of the tag is included if existsquerystring matches the value.

JSP Tag Lib Descriptor

 <name>existsquerystring</name>
 <tagclass>org.apache.taglibs.request.ExistsQueryStringTag</tagclass>
 <bodycontent>JSP</bodycontent>
 <info>Includes the body of the tag if the request querystring parameter exists.</info>
   <attribute>
     <name>name</name>
     <required>true</required>
     <rtexprvalue>false</rtexprvalue>
   </attribute>
   <attribute>
     <name>value</name>
     <required>false</required>
     <rtexprvalue>false</rtexprvalue>
   </attribute>
 

Author:
Glenn Nielsen
See Also:
Serialized Form

Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ExistsQueryStringTag()
           
 
Method Summary
 int doStartTag()
          Includes the body of the tag if the request querystring parameter exists.
 void setName(java.lang.String str)
          Set the required tag attribute name.
 void setValue(boolean value)
          Set the optional tag attribute value to true or false.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doEndTag, 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

ExistsQueryStringTag

public ExistsQueryStringTag()
Method Detail

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Includes the body of the tag if the request querystring parameter exists.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
SKIP_BODY if existsquerystring doesn't match value, EVAL_BODY_include if existsquerystring matches value

setName

public final void setName(java.lang.String str)
Set the required tag attribute name.
Parameters:
String - name of input parameter in querystring

setValue

public final void setValue(boolean value)
Set the optional tag attribute value to true or false.
Parameters:
boolean - true or false


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.