org.apache.struts.taglib.logic
Class PresentTag
org.apache.struts.taglib.logic.ConditionalTagBase
|
+--org.apache.struts.taglib.logic.PresentTag
- Direct Known Subclasses:
- NotPresentTag
- public class PresentTag
- extends ConditionalTagBase
Evalute the nested body content of this tag if the specified value
is present for this request.
- Version:
- $Revision: 1.7.2.1 $ $Date: 2001/06/11 17:34:40 $
- Author:
- Craig R. McClanahan
Method Summary |
protected boolean |
condition()
Evaluate the condition that is being tested by this particular tag,
and return true if the nested body content of this tag
should be evaluated, or false if it should be skipped.
|
protected boolean |
condition(boolean desired)
Evaluate the condition that is being tested by this particular tag,
and return true if the nested body content of this tag
should be evaluated, or false if it should be skipped.
|
Methods inherited from class org.apache.struts.taglib.logic.ConditionalTagBase |
doEndTag, doStartTag, getCookie, getHeader, getName, getParameter, getProperty, getRole, getScope, getUser, release, setCookie, setHeader, setName, setParameter, setProperty, setRole, setScope, setUser |
PresentTag
public PresentTag()
condition
protected boolean condition()
throws javax.servlet.jsp.JspException
- Evaluate the condition that is being tested by this particular tag,
and return
true
if the nested body content of this tag
should be evaluated, or false
if it should be skipped.
This method must be implemented by concrete subclasses.
- Overrides:
condition
in class ConditionalTagBase
- Throws:
JspException
- if a JSP exception occurs
condition
protected boolean condition(boolean desired)
throws javax.servlet.jsp.JspException
- Evaluate the condition that is being tested by this particular tag,
and return
true
if the nested body content of this tag
should be evaluated, or false
if it should be skipped.
This method must be implemented by concrete subclasses.
- Parameters:
desired
- Desired outcome for a true result- Throws:
JspException
- if a JSP exception occurs
Copyright © 2000-2002 - Apache Software Foundation