org.apache.struts.taglib
Class IfParameterNotNullTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--org.apache.struts.taglib.IfParameterNotNullTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

Conditionally include the body of this tag if the specified parameter is present in the current request, and has a length greather than zero.

Version:
$Revision: 1.3 $ $Date: 2000/08/01 20:03:33 $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          The name of the parameter being compared.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext, parent, values
 
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
IfParameterNotNullTag()
           
 
Method Summary
 int doStartTag()
          Retrieve the specified parameter, and decide whether or not to include the body content.
 java.lang.String getName()
          Return the parameter name.
 void release()
          Release any acquired resources.
 void setName(java.lang.String name)
          Set the parameter name.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the parameter being compared.
Constructor Detail

IfParameterNotNullTag

public IfParameterNotNullTag()
Method Detail

getName

public java.lang.String getName()
Return the parameter name.

setName

public void setName(java.lang.String name)
Set the parameter name.
Parameters:
name - The new parameter name

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Retrieve the specified parameter, and decide whether or not to include the body content.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport


Copyright © 2000-2002 - Apache Software Foundation