org.apache.strutsel.taglib.logic
Class ELMessagesNotPresentTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.struts.taglib.logic.ConditionalTagBase
          extended byorg.apache.struts.taglib.logic.MessagesPresentTag
              extended byorg.apache.struts.taglib.logic.MessagesNotPresentTag
                  extended byorg.apache.strutsel.taglib.logic.ELMessagesNotPresentTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ELMessagesNotPresentTag
extends org.apache.struts.taglib.logic.MessagesNotPresentTag

Evalute to false if an ActionMessages class or a class that can be converted to an ActionMessages class is in request scope under the specified key and there is at least one message in the class or for the property specified.

This class is a subclass of the class org.apache.struts.taglib.logic.MessagesNotPresentTag 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: 54933 $
See Also:
Serialized Form

Field Summary
private  java.lang.String messageExpr
          Instance variable mapped to "message" tag attribute.
private  java.lang.String nameExpr
          Instance variable mapped to "name" tag attribute.
private  java.lang.String propertyExpr
          Instance variable mapped to "property" tag attribute.
 
Fields inherited from class org.apache.struts.taglib.logic.MessagesPresentTag
message
 
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
ELMessagesNotPresentTag()
           
 
Method Summary
 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 getMessageExpr()
          Getter method for "message" tag attribute.
 java.lang.String getNameExpr()
          Getter method for "name" tag attribute.
 java.lang.String getPropertyExpr()
          Getter method for "property" tag attribute.
 void release()
          Releases state of custom tag so this instance can be reused.
 void setMessageExpr(java.lang.String messageExpr)
          Setter method for "message" tag attribute.
 void setNameExpr(java.lang.String nameExpr)
          Setter method for "name" tag attribute.
 void setPropertyExpr(java.lang.String propertyExpr)
          Setter method for "property" tag attribute.
 
Methods inherited from class org.apache.struts.taglib.logic.MessagesNotPresentTag
condition
 
Methods inherited from class org.apache.struts.taglib.logic.MessagesPresentTag
condition, getMessage, setMessage
 
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

nameExpr

private java.lang.String nameExpr
Instance variable mapped to "name" tag attribute. (Mapping set in associated BeanInfo class.)


propertyExpr

private java.lang.String propertyExpr
Instance variable mapped to "property" tag attribute. (Mapping set in associated BeanInfo class.)


messageExpr

private java.lang.String messageExpr
Instance variable mapped to "message" tag attribute. (Mapping set in associated BeanInfo class.)

Constructor Detail

ELMessagesNotPresentTag

public ELMessagesNotPresentTag()
Method Detail

getNameExpr

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


getPropertyExpr

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


getMessageExpr

public java.lang.String getMessageExpr()
Getter method for "message" tag attribute. (Mapping set in associated BeanInfo class.)


setNameExpr

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


setPropertyExpr

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


setMessageExpr

public void setMessageExpr(java.lang.String messageExpr)
Setter method for "message" tag attribute. (Mapping set in associated BeanInfo class.)


release

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


doStartTag

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

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

evaluateExpressions

private void evaluateExpressions()
                          throws javax.servlet.jsp.JspException
Processes all attribute values which use the JSTL expression evaluation engine to determine their values.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred


Copyright ? 2000-2005 - The Apache Software Foundation