org.apache.struts.taglib
Class IfParameterNullTag

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

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

Conditionally include the body of this tag if the specified parameter is not present in the current request, or it is present as a zero length string.

Version:
$Revision: 1.2 $ $Date: 2000/08/01 20:03:34 $
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
IfParameterNullTag()
           
 
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 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, release, 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

IfParameterNullTag

public IfParameterNullTag()
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


Copyright © 2000-2002 - Apache Software Foundation