org.apache.strutsel.taglib.logic
Class ELMatchTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.struts.taglib.logic.ConditionalTagBase
          extended by org.apache.struts.taglib.logic.MatchTag
              extended by org.apache.strutsel.taglib.logic.ELMatchTag
All Implemented Interfaces:
Serializable, IterationTag, Tag

public class ELMatchTag
extends org.apache.struts.taglib.logic.MatchTag

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.MatchTag 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.

Version:
$Rev: 471754 $
See Also:
Serialized Form

Field Summary
 
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
ELMatchTag()
           
 
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.
 String getCookieExpr()
          Getter method for "cookie" tag attribute.
 String getExpr()
          Returns the string value of the expression.
 String getExprValue()
          Returns the evaluated expression.
 String getHeaderExpr()
          Getter method for "header" tag attribute.
 String getLocationExpr()
          Getter method for "location" tag attribute.
 String getNameExpr()
          Getter method for "name" tag attribute.
 String getParameterExpr()
          Getter method for "parameter" tag attribute.
 String getPropertyExpr()
          Getter method for "property" tag attribute.
 String getScopeExpr()
          Getter method for "scope" tag attribute.
 String getValueExpr()
          Getter method for "value" tag attribute.
 void release()
          Releases state of custom tag so this instance can be reused.
 void setCookieExpr(String cookieExpr)
          Setter method for "cookie" tag attribute.
 void setExpr(String expr)
          Sets the string value of the expression.
 void setExprValue(String exprValue)
          Sets the evaluated expression.
 void setHeaderExpr(String headerExpr)
          Setter method for "header" tag attribute.
 void setLocationExpr(String locationExpr)
          Setter method for "location" tag attribute.
 void setNameExpr(String nameExpr)
          Setter method for "name" tag attribute.
 void setParameterExpr(String parameterExpr)
          Setter method for "parameter" tag attribute.
 void setPropertyExpr(String propertyExpr)
          Setter method for "property" tag attribute.
 void setScopeExpr(String scopeExpr)
          Setter method for "scope" tag attribute.
 void setValueExpr(String valueExpr)
          Setter method for "value" tag attribute.
 
Methods inherited from class org.apache.struts.taglib.logic.MatchTag
condition, 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
 

Constructor Detail

ELMatchTag

public ELMatchTag()
Method Detail

getCookieExpr

public String getCookieExpr()
Getter method for "cookie" tag attribute. (Mapping set in associated BeanInfo class.)


getHeaderExpr

public String getHeaderExpr()
Getter method for "header" tag attribute. (Mapping set in associated BeanInfo class.)


getLocationExpr

public String getLocationExpr()
Getter method for "location" tag attribute. (Mapping set in associated BeanInfo class.)


getNameExpr

public String getNameExpr()
Getter method for "name" tag attribute. (Mapping set in associated BeanInfo class.)


getParameterExpr

public String getParameterExpr()
Getter method for "parameter" tag attribute. (Mapping set in associated BeanInfo class.)


getPropertyExpr

public String getPropertyExpr()
Getter method for "property" tag attribute. (Mapping set in associated BeanInfo class.)


getScopeExpr

public String getScopeExpr()
Getter method for "scope" tag attribute. (Mapping set in associated BeanInfo class.)


getValueExpr

public String getValueExpr()
Getter method for "value" tag attribute. (Mapping set in associated BeanInfo class.)


setCookieExpr

public void setCookieExpr(String cookieExpr)
Setter method for "cookie" tag attribute. (Mapping set in associated BeanInfo class.)


setHeaderExpr

public void setHeaderExpr(String headerExpr)
Setter method for "header" tag attribute. (Mapping set in associated BeanInfo class.)


setLocationExpr

public void setLocationExpr(String locationExpr)
Setter method for "location" tag attribute. (Mapping set in associated BeanInfo class.)


setNameExpr

public void setNameExpr(String nameExpr)
Setter method for "name" tag attribute. (Mapping set in associated BeanInfo class.)


setParameterExpr

public void setParameterExpr(String parameterExpr)
Setter method for "parameter" tag attribute. (Mapping set in associated BeanInfo class.)


setPropertyExpr

public void setPropertyExpr(String propertyExpr)
Setter method for "property" tag attribute. (Mapping set in associated BeanInfo class.)


setScopeExpr

public void setScopeExpr(String scopeExpr)
Setter method for "scope" tag attribute. (Mapping set in associated BeanInfo class.)


setValueExpr

public void setValueExpr(String valueExpr)
Setter method for "value" tag attribute. (Mapping set in associated BeanInfo class.)


getExpr

public String getExpr()
Returns the string value of the expression. This value will be evaluated by the JSTL EL engine.


setExpr

public void setExpr(String expr)
Sets the string value of the expression. This expression will be evaluated by the JSTL EL engine.


getExprValue

public String getExprValue()
Returns the evaluated expression.


setExprValue

public void setExprValue(String exprValue)
Sets the evaluated expression.


release

public void release()
Releases state of custom tag so this instance can be reused.

Specified by:
release in interface Tag
Overrides:
release in class org.apache.struts.taglib.logic.MatchTag

doStartTag

public int doStartTag()
               throws JspException
Process the start tag.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class org.apache.struts.taglib.logic.ConditionalTagBase
Throws:
JspException - if a JSP exception has occurred

condition

protected boolean condition(boolean desired)
                     throws JspException
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.

Overrides:
condition in class org.apache.struts.taglib.logic.MatchTag
Parameters:
desired - Desired value for a true result
Throws:
JspException - if a JSP exception occurs


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.