org.apache.struts.taglib.logic
クラス PresentTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.logic.ConditionalTagBase
org.apache.struts.taglib.logic.PresentTag
- すべての実装インタフェース:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- 直系の既知のサブクラス:
- NestedPresentTag, NotPresentTag
- public class PresentTag
- extends ConditionalTagBase
Evalute the nested body content of this tag if the specified value
is present for this request.
- バージョン:
- $Revision: 1.1 $ $Date: 2004/10/20 03:26:42 $
- 関連項目:
- 直列化された形式
| クラス javax.servlet.jsp.tagext.TagSupport から継承したフィールド |
id, pageContext |
| インタフェース javax.servlet.jsp.tagext.IterationTag から継承したフィールド |
EVAL_BODY_AGAIN |
| インタフェース javax.servlet.jsp.tagext.Tag から継承したフィールド |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
|
メソッドの概要 |
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.
|
protected boolean |
isBeanPresent()
Returns true if the bean given in the name attribute is found. |
protected boolean |
isCookiePresent(javax.servlet.http.HttpServletRequest request)
Returns true if the cookie is present in the request. |
| クラス 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 |
| クラス javax.servlet.jsp.tagext.TagSupport から継承したメソッド |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース javax.servlet.jsp.tagext.IterationTag から継承したメソッド |
|
ROLE_DELIMITER
public static final java.lang.String ROLE_DELIMITER
- 関連項目:
- 定数フィールド値
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.
- 定義:
- クラス
ConditionalTagBase 内の condition
- 例外:
javax.servlet.jsp.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.
- パラメータ:
desired - Desired outcome for a true result
- 例外:
javax.servlet.jsp.JspException - if a JSP exception occurs
isBeanPresent
protected boolean isBeanPresent()
- Returns true if the bean given in the
name attribute is found.
- 導入されたバージョン:
- Struts 1.2
isCookiePresent
protected boolean isCookiePresent(javax.servlet.http.HttpServletRequest request)
- Returns true if the cookie is present in the request.
- 導入されたバージョン:
- Struts 1.2
このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation