2010-04-14 - Jakarta Taglibs has been retired.

For more information, please explore the Attic.

Jakarta Project: Request Tag library

Version: 1.0.1

Table of Contents

Overview

The REQUEST custom tag library contains tags which can be used to access all the information about the HTTP request for a JSP page.

Tags are provided to access information in the HTTP request for HTTP input parameters from a POST or GET, HTTP Headers, Cookies, request attributes, and session information related to this request.

Requirements

This custom tag library requires no software other than a servlet container that supports the JavaServer Pages Specification, version 1.1 or higher.

Configuration

Follow these steps to configure your web application with this tag library:

To use the tags from this library in your JSP pages, add the following directive at the top of each page:

<%@ taglib uri="http://jakarta.apache.org/taglibs/request-1.0" prefix="req" %>

where "req" is the tag name prefix you wish to use for tags from this library. You can change this value to any prefix you like.

Tag Summary

Request Tags
logLog the body of the tag to the servlet context log.
requestGet information about current HTTP request.
 
Request Session Tags
isSecure Test whether the HTTP connection is secure (using HTTPS).
isSessionFromCookie Test whether the HTTP session was from a cookie.
isSessionFromUrl Test whether the HTTP session was from URL encoding.
isSessionValid Test whether the HTTP session is valid.
isUserInRole Test whether the remote user is in a role.
 
Request Attribute Tags
attributeGet the value of a single request attribute.
attributesLoop through all request attributes.
equalsAttribute See if a request attribute equals some value.
existsAttribute See if a request attribute exists.
removeAttributeRemoves an attribute from a request.
setAttributeSets the value of a request attribute.
 
Request Cookie Tags
cookieGet the value of a single request cookie.
cookiesLoop through all request cookies.
equalsCookie See if a request cookie equals some value.
existsCookie See if a request cookie exists.
 
Request Header Tags
headerGet the value of a single request HTTP header.
headersLoop through all request headers.
equalsHeader See if a request header equals some value.
existsHeader See if a request header exists.
headerValuesGet the name and values of a single header.
 
Request Parameter Tags
parameterGet the value of a single request HTTP parameter.
parametersLoop through all request parameters.
equalsParameter See if a request parameter equals some value.
existsParameter See if a request parameter exists.
parameterValuesGet the name and values of a single parameter.
 
Request QueryString Tags
queryStringGet the value of a single request HTTP queryString.
queryStringsLoop through all request queryStrings.
existsQueryString See if a request queryString exists.
 

Tag Reference

log Availability: 1.0

Log the body of the tag to the servlet context log.

Tag BodyJSP    
Restrictions

None

AttributesNone
VariablesNone
Examples Log the user input parameter.  
 


      
<req:log>User "<req:parameter name="user"/>" has logged in</req:log>
                                                    
          

request Availability: 1.0

Get information about the current request.

Tag Bodyempty    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 id  Yes   No  1.0
 

Script variable id for use with standard jsp:getProperty tag.

VariablesNameScopeAvailability
  id attribute value   Start of tag to end of page  1.0
 

Request Data Bean

 PropertiesNameGetSetAvailability
   authType Yes No 1.0
  

Returns the name of the authentication scheme used to protect the page, "BASIC", "SSL," or "" if the page was not protected.

   contextPath Yes No 1.0
  

Returns the portion of the request URI that indicates the context of the request.

   method Yes No 1.0
  

Returns the name of the HTTP method with which this request was made, "GET", "POST", or "PUT".

   pathInfo Yes No 1.0
  

Returns any extra path information associated with the URL the client sent when it made this request.

   pathTranslated Yes No 1.0
  

Returns any extra path information after the servlet name but before the query string, and translates it to a real path.

   queryString Yes No 1.0
  

Returns the query string that is contained in the request URL after the path.

   remoteUser Yes No 1.0
  

Returns the login of the user making this request, if the user has been authenticated, or "" if the user has not been authenticated.

   requestedSessionId Yes No 1.0
  

Returns the session ID specified by the client.

   requestURI Yes No 1.0
  

Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request.

   requestURL Yes No 1.0
  

Returns the request URL up to the query string in the first line of the HTTP request.

   servletPath Yes No 1.0
  

Returns the part of this request's URL that calls the servlet.

   characterEncoding Yes No 1.0
  

Returns the name of the character encoding used in the body of this request.

   contentLength Yes No 1.0
  

Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known.

   contentType Yes No 1.0
  

Returns the MIME type of the body of the request, or "" if the type is not known.

   protocol Yes No 1.0
  

Returns the name and version of the protocol the request uses in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1.

   remoteAddr Yes No 1.0
  

Returns the Internet Protocol (IP) address of the client that sent the request.

   remoteHost Yes No 1.0
  

Returns the fully qualified name of the client that sent the request, or the IP address of the client if the name cannot be determined.

   scheme Yes No 1.0
  

Returns the name of the scheme used to make this request, for example, http, https, or ftp.

   serverName Yes No 1.0
  

Returns the host name of the server that received the request.

   serverPort Yes No 1.0
  

Returns the port number on which this request was received.

Examples Display the requestURI and QueryString  
 



<req:request id="req"/>
 RequestURI:
<jsp:getProperty name="req" property="requestURI"/><BR>
 QueryString:
<jsp:getProperty name="req" property="queryString"/><BR>
 
          

isSecure Availability: 1.0

Test whether the HTTP connection is secure (using HTTPS).

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 value  No   No  1.0
 

If value is set to false the isSecure tag includes body of tag if session is not secure. Default value is true.

VariablesNone
Examples Display whether the clients session is secure  
 


 
<req:isSecure>
  This session is secure.
</req:isSecure>
<req:isSecure value="false">
  This session is not secure.
</req:isSecure>
       
          

isSessionFromCookie Availability: 1.0

Test whether the HTTP session was from a cookie.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 value  No   No  1.0
 

If value is set to false the isSessionFromCookie tag includes body of tag if session is not from a cookie. Default value is true.

VariablesNone
Examples Display whether the clients session is from a cookie  
 


 
<req:isSessionFromCookie>
  This session is from a cookie.
</req:isSessionFromCookie>
<req:isSessionFromCookie value="false">
  This session is not from a cookie.
</req:isSessionFromCookie>
     
          

isSessionFromUrl Availability: 1.0

Test whether the HTTP session was from URL encoding.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 value  No   No  1.0
 

If value is set to false the isSessionFromUrl tag includes body of tag if session is not from a URL. Default value is true.

VariablesNone
Examples Display whether the clients session is from a URL  
 

   
      
<req:isSessionFromUrl>
  This session is from a URL.
</req:isSessionFromUrl>
<req:isSessionFromUrl value="false">
  This session is not from a URL.
</req:isSessionFromUrl>
       
          

isSessionValid Availability: 1.0

Test whether the HTTP session is valid.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 value  No   No  1.0
 

If value is set to false the isSessionValid tag includes body of tag if session is not valid. Default value is true.

VariablesNone
Examples Display whether the clients session is valid  
 

   
      
<req:isSessionValid>
  This session is valid.
</req:isSessionValid>
<req:isSessionValid value="false">
  This session is not valid.
</req:isSessionValid>
       
          

isUserInRole Availability: 1.0

Test whether the remote user is in a role.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 role  Yes   No  1.0
 

Name of role to test remote user with.

 value  No   No  1.0
 

If value is set to false the isUserInRole tag includes body of tag if user is not in role. Default value is true.

VariablesNone
Examples Display whether the remote user is in role "admin"  
 

   
      
<req:isUserInRole role="admin">
  The remote user is in role "admin".
</req:isUserInRole>
<req:isUserInRole role="admin" value="false">
  The remote user is not in role "admin".
</req:isUserInRole>
       
          

attribute Availability: 1.0

Get the value of a single request attribute.

Tag Bodyempty    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request attribute to get.

VariablesNone
Examples Output the value of the request attribute with name "test1"  
 



<req:attribute name="test1"/>

          

attributes Availability: 1.0

Loop through all request attributes.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 id  Yes   No  1.0
 

Script variable id for use with standard jsp:getProperty tag.

VariablesNameScopeAvailability
  id attribute value   Nested within tag  1.0
 

Request Attribute Bean

 PropertiesNameGetSetAvailability
   name Yes No 1.0
  

Request attribute name.

   value Yes No 1.0
  

Request attribute value.

Examples Output the name and value of all the request attributes  
 



<req:attributes id="loop">
Name: <jsp:getProperty name="loop" property="name"/>
Value: <jsp:getProperty name="loop" property="value"/>
</req:attributes>
    
          

equalsAttribute Availability: 1.0

Includes the body of the tag if the request attribute value equals the match attribute.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request attribute.

 value  No   No  1.0
 

If value is set to false the equalsAttribute tag includes body of tag if request attribute does not equal the match attribute. Default is true.

 match  Yes   No  1.0
 

String to test for equality with request attribute value.

 ignoreCase  No   No  1.0
 

Set to true to test for equality while ignoring the case of the letters. Set to false to test for case sensitive equality. Default is false

VariablesNone
Examples Determine if the request attribute "test1" value equals "blah"  
 



<req:equalsAttribute name="test1" match="blah">
  The request attribute with name test1 matches "blah".
</req:equalsAttribute>
<req:equalsAttribute name="test1" match="blah" value="false">
  The request attribute with name test1 does not match "blah".
</req:equalsAttribute>

          

existsAttribute Availability: 1.0

Includes the body of the tag if the request attribute exists.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request attribute.

 value  No   No  1.0
 

If value is set to false the existsAttribute tag includes body of tag if request attribute does not exist. Default is true.

VariablesNone
Examples Determine if the "test1" Request attribute exists  
 



<req:existsAttribute name="test1">
 The request attribute with name test1 exists.
</req:existsAttribute>
<req:existsAttribute name="test1" value="false">
 The request attribute with name test1 does not exist.
</req:existsAttribute>
         
          

removeAttribute Availability: 1.0

Removes an attribute from a request.

Tag Bodyempty    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request attribute to remove.

VariablesNone
Examples Remove the request attribute with name "test1"  
 

   

<req:removeAttribute name="test1"/>

          

setAttribute Availability: 1.0

Sets the value of the request attribute to the content of the tag body.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request attribute to set value for.

VariablesNone
Examples Set the request attribute with name "test1"  
 

   

<req:setAttribute name="test1">Test Value</req:setAttribute>
 
          

cookie Availability: 1.0

Get the value of a single request cookie.

Tag Bodyempty    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request cookie to get.

VariablesNone
Examples Output the value of the request cookie with name "test1"  
 



<req:cookie name="test1"/> 

          

cookies Availability: 1.0

Loop through all request cookies, or get the properties of a single cookie.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 id  Yes   No  1.0
 

Script variable id for use with standard jsp:getProperty tag.

 name  No   No  1.0
 

Name of a single cookie to get the properties of.

VariablesNameScopeAvailability
   attribute value   Nested within tag  1.0
 

Request Cookie Bean

 PropertiesNameGetSetAvailability
   comment Yes No 1.0
  

Cookie comment.

   domain Yes No 1.0
  

Cookie domain.

   maxAge Yes No 1.0
  

Cookie maximum age in seconds, -1 indicates the cookie will persist until client browser shutdown.

   name Yes No 1.0
  

Cookie name.

   path Yes No 1.0
  

Cookie path on server.

   secure Yes No 1.0
  

Returns "1" if the browser is sending cookies only over a secure protocol, or "0" if the browser can send cookies using any protocol.

   value Yes No 1.0
  

Request cookie value.

   version Yes No 1.0
  

Version of the protocol this cookie complies with.

Examples Output the name and value of all the request cookies  
 


   
<req:cookies id="loop">
Name: <jsp:getProperty name="loop" property="name"/>
Value: <jsp:getProperty name="loop" property="value"/>
</req:cookies>
         
          

Get the name and value of a single cookie named test1  
 

   
      
<req:cookies id="single" name="test1">
Name: <jsp:getProperty name="single" property="name"/>  
Value: <jsp:getProperty name="single" property="value"/>
</req:cookies>
          
          

equalsCookie Availability: 1.0

Includes the body of the tag if the request cookie value equals the match attribute.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request cookie.

 value  No   No  1.0
 

If value is set to false the equalsCookie tag includes body of tag if request cookie does not equal the match attribute. Default is true.

 match  Yes   No  1.0
 

String to test for equality with request cookie value.

 ignoreCase  No   No  1.0
 

Set to true to test for equality while ignoring the case of the letters. Set to false to test for case sensitive equality. Default is false

VariablesNone
Examples Determine if the request cookie "test1" value equals "blah"  
 



<req:equalsCookie name="test1" match="blah">
  The request cookie with name test1 matches "blah".
</req:equalsCookie>
<req:equalsCookie name="test1" match="blah" value="false">
  The request cookie with name test1 does not match "blah".
</req:equalsCookie>

          

existsCookie Availability: 1.0

Includes the body of the tag if the request cookie exists.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request cookie.

 value  No   No  1.0
 

If value is set to false the existsCookie tag includes body of tag if request cookie does not exist. Default is true.

VariablesNone
Examples Determine if the "test1" Request cookie exists  
 



<req:existsCookie name="test1">
 The request cookie with name test1 exists.
</req:existsCookie>
<req:existsCookie name="test1" value="false">
 The request cookie with name test1 does not exist.
</req:existsCookie>
     
          

header Availability: 1.0

Get the value of a single request HTTP header.

Tag Bodyempty    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request header to get.

VariablesNone
Examples Output the value of the request header with name "User-Agent"  
 

    
      
<req:header name="User-Agent"/>
                     
          

headers Availability: 1.0

Loop through all request HTTP headers, or get the properties of a single header.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 id  Yes   No  1.0
 

Script variable id for use with standard jsp:getProperty tag.

 name  No   No  1.0
 

Name of a single header to get the value of.

VariablesNameScopeAvailability
   attribute value   Nested within tag  1.0
 

Request Header Bean

 PropertiesNameGetSetAvailability
   name Yes No 1.0
  

>Request header name.

   header Yes No 1.0
  

Request header value as a string.

   dateHeader Yes No 1.0
  

Request header value for a date, measured in milliseconds since midnight January 1, 1970 GMT.

   intHeader Yes No 1.0
  

Request header value for an integer.

Examples Output the name and value of all the request headers  
 



<req:headers id="loop">
Name: <jsp:getProperty name="loop" property="name"/>
Value: <jsp:getProperty name="loop" property="header"/>
</req:headers>
     
          

Output the name and value of the User-Agent request header  
 



<req:headers id="single" name="User-Agent">
Name: <jsp:getProperty name="single" property="name"/>
Value: <jsp:getProperty name="single" property="header"/>
</req:headers>
     
          

equalsHeader Availability: 1.0

Includes the body of the tag if the request header value equals the match attribute.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request header.

 value  No   No  1.0
 

If value is set to false the equalsHeader tag includes body of tag if request header does not equal the match attribute. Default is true.

 match  Yes   No  1.0
 

String to test for equality with request header value.

 ignoreCase  No   No  1.0
 

Set to true to test for equality while ignoring the case of the letters. Set to false to test for case sensitive equality. Default is false

VariablesNone
Examples Determine if the request header "User-Agent" value equals "Netscape"  
 



<req:equalsHeader name="User-Agent" match="Netscape">
  The request header with name User-Agent matches "Netscape".
</req:equalsHeader>
<req:equalsHeader name="User-Agent" match="Netscape" value="false">
  The request header with name User-Agent does not match "Netscape".
</req:equalsHeader>

          

existsHeader Availability: 1.0

Includes the body of the tag if the request header exists.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request header.

 value  No   No  1.0
 

If value is set to false the existsHeader tag includes body of tag if request header does not exist. Default is true.

VariablesNone
Examples Determine if the "User-Agent" Request header exists  
 


      
<req:existsHeader name="User-Agent">
 The request header with name User-Agent exists.
</req:existsHeader>                       
<req:existsHeader name="User-Agent" value="false">
 The request header with name User-Agent does not exist.
</req:existsHeader>                         
               
          

headerValues Availability: 1.0

Loop through all the values for an HTTP header which has multiple values.

Tag BodyJSP    
Restrictions

Must be nested inside a headers tag.

AttributesNameRequired Runtime Expression Evaluation Availability
 id  Yes   No  1.0
 

Script variable id for use with standard jsp:getProperty tag.

VariablesNameScopeAvailability
   attribute value   Nested within tag  1.0
 

Header Value Bean

 PropertiesNameGetSetAvailability
   header Yes No 1.0
  

Request header value as a string.

Examples Output all the values of the HTTP Language header  
 



<req:headers id="single" name="Language">
 <req:headerValues id="values">
  Value: <jsp:getProperty name="values" property="header"/>
 </req:headerValues>
</req:headers>

          

parameter Availability: 1.0

Get the value of a single request HTTP parameter.

Tag Bodyempty    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request parameter to get.

VariablesNone
Examples Output the value of the request parameter with name "test1"  
 

    
      
<req:parameter name="test1"/>
                     
          

parameters Availability: 1.0

Loop through all request HTTP parameters, or get the properties of a single parameter.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 id  Yes   No  1.0
 

Script variable id for use with standard jsp:getProperty tag.

 name  No   No  1.0
 

Name of a single parameter to get the value of.

VariablesNameScopeAvailability
  id attribute value   Nested within tag  1.0
 

Request Parameter Bean

 PropertiesNameGetSetAvailability
   name Yes No 1.0
  

Request parameter name.

   value Yes No 1.0
  

Request parameter value as a string.

Examples Output the name and value of all the request parameters  
 



<req:parameters id="loop">
Name: <jsp:getProperty name="loop" property="name"/>
Value: <jsp:getProperty name="loop" property="value"/>
</req:parameters>
     
          

Output the name and value of the test1 request parameter  
 



<req:parameters id="single" name="test1">
Name: <jsp:getProperty name="single" property="name"/>
Value: <jsp:getProperty name="single" property="value"/>
</req:parameters>
     
          

equalsParameter Availability: 1.0

Includes the body of the tag if the request parameter value equals the match attribute.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request parameter.

 value  No   No  1.0
 

If value is set to false the equalsParameter tag includes body of tag if request parameter does not equal the match attribute. Default is true.

 match  Yes   No  1.0
 

String to test for equality with request parameter value.

 ignoreCase  No   No  1.0
 

Set to true to test for equality while ignoring the case of the letters. Set to false to test for case sensitive equality. Default is false

VariablesNone
Examples Determine if the request parameter "test1" value equals "blah"  
 



<req:equalsParameter name="test1" match="blah">
  The request parameter with name test1 matches "blah".
</req:equalsParameter>
<req:equalsParameter name="test1" match="blah" value="false">
  The request parameter with name test1 does not match "blah".
</req:equalsParameter>

          

existsParameter Availability: 1.0

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

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request parameter.

 value  No   No  1.0
 

If value is set to false the existsParameter tag includes body of tag if request parameter does not exist. Default is true.

VariablesNone
Examples Determine if the "test1" Request parameter exists  
 


      
<req:existsParameter name="test1">
 The request parameter with name test1 exists.
</req:existsParameter>                       
<req:existsParameter name="test1" value="false">
 The request parameter with name test1 does not exist.
</req:existsParameter>                         
               
          

parameterValues Availability: 1.0

Loop through all the values for an HTTP parameter which has multiple values.

Tag BodyJSP    
Restrictions

Must be nested inside a parameters tag.

AttributesNameRequired Runtime Expression Evaluation Availability
 id  Yes   No  1.0
 

Script variable id for use with standard jsp:getProperty tag.

VariablesNameScopeAvailability
  id attribute value   Nested within tag  1.0
 

Parameter Value Bean

 PropertiesNameGetSetAvailability
   value Yes No 1.0
  

Request parameter value as a string.

Examples Output all the values of the HTTP test1 parameter  
 



<req:parameters id="single" name="test1">
 <req:parameterValues id="values">
  Value: <jsp:getProperty name="values" property="value"/>
 </req:parameterValues>
</req:parameters>

          

queryString Availability: 1.0

Get the value of a single request HTTP queryString.

Tag Bodyempty    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request queryString to get.

VariablesNone
Examples Output the value of the request queryString with name "test1"  
 

    
      
<req:queryString name="test1"/>
                     
          

queryStrings Availability: 1.0

Loop through all request HTTP queryStrings, or get the properties of a single queryString.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 id  Yes   No  1.0
 

Script variable id for use with standard jsp:getProperty tag.

 name  No   No  1.0
 

Name of a single queryString to get the value of.

VariablesNameScopeAvailability
   attribute value   Nested within tag  1.0
 

Request QueryString Bean

 PropertiesNameGetSetAvailability
   name Yes No 1.0
  

>Request queryString name.

   queryString Yes No 1.0
  

Request queryString value as a string.

Examples Output the name and value of all the request queryStrings  
 



<req:queryStrings id="loop">
Name: <jsp:getProperty name="loop" property="name"/>
Value: <jsp:getProperty name="loop" property="value"/>
</req:queryStrings>
     
          

Output the name and value of the test1 request queryString  
 



<req:queryStrings id="single" name="test1">
Name: <jsp:getProperty name="single" property="name"/>
Value: <jsp:getProperty name="single" property="value"/>
</req:queryStrings>
     
          

existsQueryString Availability: 1.0

Includes the body of the tag if the request queryString exists.

Tag BodyJSP    
Restrictions

None

AttributesNameRequired Runtime Expression Evaluation Availability
 name  Yes   No  1.0
 

Name of request queryString.

 value  No   No  1.0
 

If value is set to false the existsQueryString tag includes body of tag if request queryString does not exist. Default is true.

VariablesNone
Examples Determine if the "test1" Request queryString exists  
 


      
<req:existsQueryString name="test1">
 The request queryString with name test1 exists.
</req:existsQueryString>                       
<req:existsQueryString name="test1" value="false">
 The request queryString with name test1 does not exist.
</req:existsQueryString>                         
               
          

Examples

See the example application request-examples.war for examples of the usage of the tags from this custom tag library.

Java Docs

Java programmers can view the java class documentation for this tag library as javadocs.

Revision History

Review the complete revision history of this tag library.