|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.logic.ConditionalTagBase
org.apache.struts.taglib.logic.MatchTag
org.apache.struts.taglib.logic.NotMatchTag
org.apache.strutsel.taglib.logic.ELNotMatchTag
Evalute the nested body content of this tag if the specified value is a substring of the specified variable.
This class is a subclass of the class
org.apache.struts.taglib.logic.NotMatchTag
which provides most
of the described functionality. This subclass allows all attribute values
to be specified as expressions utilizing the JavaServer Pages Standard
Library expression language.
Field Summary | |
private java.lang.String |
cookieExpr
Instance variable mapped to "cookie" tag attribute. |
private java.lang.String |
expr
String value of expression to be evaluated. |
private java.lang.String |
exprValue
Evaluated value of expression. |
private java.lang.String |
headerExpr
Instance variable mapped to "header" tag attribute. |
private java.lang.String |
locationExpr
Instance variable mapped to "location" tag attribute. |
private java.lang.String |
nameExpr
Instance variable mapped to "name" tag attribute. |
private java.lang.String |
parameterExpr
Instance variable mapped to "parameter" tag attribute. |
private java.lang.String |
propertyExpr
Instance variable mapped to "property" tag attribute. |
private java.lang.String |
scopeExpr
Instance variable mapped to "scope" tag attribute. |
private java.lang.String |
valueExpr
Instance variable mapped to "value" tag attribute. |
Fields inherited from class org.apache.struts.taglib.logic.MatchTag |
location, value |
Fields inherited from class org.apache.struts.taglib.logic.ConditionalTagBase |
cookie, header, messages, name, parameter, property, role, scope, user |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
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 | |
ELNotMatchTag()
|
Method Summary | |
protected boolean |
condition(boolean desired)
Evaluates the condition that is being tested by this particular tag, and returns true if the nested body content of this tag
should be evaluated, or false if it should be skipped. |
int |
doStartTag()
Process the start tag. |
private void |
evaluateExpressions()
Processes all attribute values which use the JSTL expression evaluation engine to determine their values. |
java.lang.String |
getCookieExpr()
Getter method for "cookie" tag attribute. |
java.lang.String |
getExpr()
Returns the string value of the expression. |
java.lang.String |
getExprValue()
Returns the evaluated expression. |
java.lang.String |
getHeaderExpr()
Getter method for "header" tag attribute. |
java.lang.String |
getLocationExpr()
Getter method for "location" tag attribute. |
java.lang.String |
getNameExpr()
Getter method for "name" tag attribute. |
java.lang.String |
getParameterExpr()
Getter method for "parameter" tag attribute. |
java.lang.String |
getPropertyExpr()
Getter method for "property" tag attribute. |
java.lang.String |
getScopeExpr()
Getter method for "scope" tag attribute. |
java.lang.String |
getValueExpr()
Getter method for "value" tag attribute. |
void |
release()
Releases state of custom tag so this instance can be reused. |
void |
setCookieExpr(java.lang.String cookieExpr)
Setter method for "cookie" tag attribute. |
void |
setExpr(java.lang.String expr)
Sets the string value of the expression. |
void |
setExprValue(java.lang.String exprValue)
Sets the evaluated expression. |
void |
setHeaderExpr(java.lang.String headerExpr)
Setter method for "header" tag attribute. |
void |
setLocationExpr(java.lang.String locationExpr)
Setter method for "location" tag attribute. |
void |
setNameExpr(java.lang.String nameExpr)
Setter method for "name" tag attribute. |
void |
setParameterExpr(java.lang.String parameterExpr)
Setter method for "parameter" tag attribute. |
void |
setPropertyExpr(java.lang.String propertyExpr)
Setter method for "property" tag attribute. |
void |
setScopeExpr(java.lang.String scopeExpr)
Setter method for "scope" tag attribute. |
void |
setValueExpr(java.lang.String valueExpr)
Setter method for "value" tag attribute. |
Methods inherited from class org.apache.struts.taglib.logic.NotMatchTag |
condition |
Methods inherited from class org.apache.struts.taglib.logic.MatchTag |
getLocation, getValue, setLocation, setValue |
Methods inherited from class org.apache.struts.taglib.logic.ConditionalTagBase |
doEndTag, getCookie, getHeader, getName, getParameter, getProperty, getRole, getScope, getUser, setCookie, setHeader, setName, setParameter, setProperty, setRole, setScope, setUser |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String cookieExpr
private java.lang.String headerExpr
private java.lang.String locationExpr
private java.lang.String nameExpr
private java.lang.String parameterExpr
private java.lang.String propertyExpr
private java.lang.String scopeExpr
private java.lang.String valueExpr
private java.lang.String expr
private java.lang.String exprValue
Constructor Detail |
public ELNotMatchTag()
Method Detail |
public java.lang.String getCookieExpr()
public java.lang.String getHeaderExpr()
public java.lang.String getLocationExpr()
public java.lang.String getNameExpr()
public java.lang.String getParameterExpr()
public java.lang.String getPropertyExpr()
public java.lang.String getScopeExpr()
public java.lang.String getValueExpr()
public void setCookieExpr(java.lang.String cookieExpr)
public void setHeaderExpr(java.lang.String headerExpr)
public void setLocationExpr(java.lang.String locationExpr)
public void setNameExpr(java.lang.String nameExpr)
public void setParameterExpr(java.lang.String parameterExpr)
public void setPropertyExpr(java.lang.String propertyExpr)
public void setScopeExpr(java.lang.String scopeExpr)
public void setValueExpr(java.lang.String valueExpr)
public java.lang.String getExpr()
public void setExpr(java.lang.String expr)
public java.lang.String getExprValue()
public void setExprValue(java.lang.String exprValue)
public void release()
public int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if a JSP exception has occurredprotected boolean condition(boolean desired) throws javax.servlet.jsp.JspException
true
if the nested body content of this tag
should be evaluated, or false
if it should be skipped.
desired
- Desired value for a true result
javax.servlet.jsp.JspException
- if a JSP exception occursprivate void evaluateExpressions() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if a JSP exception has occurred
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |