org.apache.strutsel.taglib.bean
Class ELMessageTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.struts.taglib.bean.MessageTag
          extended byorg.apache.strutsel.taglib.bean.ELMessageTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ELMessageTag
extends org.apache.struts.taglib.bean.MessageTag

Custom tag that retrieves an internationalized messages string (with optional parametric replacement) from the ActionResources object stored as a context attribute by our associated ActionServlet implementation.

This class is a subclass of the class org.apache.struts.taglib.bean.MessageTag 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 arg0Expr
          Instance variable mapped to "arg0" tag attribute.
private  java.lang.String arg1Expr
          Instance variable mapped to "arg1" tag attribute.
private  java.lang.String arg2Expr
          Instance variable mapped to "arg2" tag attribute.
private  java.lang.String arg3Expr
          Instance variable mapped to "arg3" tag attribute.
private  java.lang.String arg4Expr
          Instance variable mapped to "arg4" tag attribute.
private  java.lang.String bundleExpr
          Instance variable mapped to "bundle" tag attribute.
private  java.lang.String keyExpr
          Instance variable mapped to "key" tag attribute.
private  java.lang.String localeExpr
          Instance variable mapped to "locale" 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.
private  java.lang.String scopeExpr
          Instance variable mapped to "scope" tag attribute.
 
Fields inherited from class org.apache.struts.taglib.bean.MessageTag
arg0, arg1, arg2, arg3, arg4, bundle, defaultLocale, key, localeKey, messages, name, property, scope
 
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
ELMessageTag()
           
 
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 getArg0Expr()
          Getter method for "arg0" tag attribute.
 java.lang.String getArg1Expr()
          Getter method for "arg1" tag attribute.
 java.lang.String getArg2Expr()
          Getter method for "arg2" tag attribute.
 java.lang.String getArg3Expr()
          Getter method for "arg3" tag attribute.
 java.lang.String getArg4Expr()
          Getter method for "arg4" tag attribute.
 java.lang.String getBundleExpr()
          Getter method for "bundle" tag attribute.
 java.lang.String getKeyExpr()
          Getter method for "key" tag attribute.
 java.lang.String getLocaleExpr()
          Getter method for "locale" tag attribute.
 java.lang.String getNameExpr()
          Getter method for "name" tag attribute.
 java.lang.String getPropertyExpr()
          Getter method for "property" tag attribute.
 java.lang.String getScopeExpr()
          Getter method for "scope" tag attribute.
 void release()
          Resets attribute values for tag reuse.
 void setArg0Expr(java.lang.String arg0Expr)
          Setter method for "arg0" tag attribute.
 void setArg1Expr(java.lang.String arg1Expr)
          Setter method for "arg1" tag attribute.
 void setArg2Expr(java.lang.String arg2Expr)
          Setter method for "arg2" tag attribute.
 void setArg3Expr(java.lang.String arg3Expr)
          Setter method for "arg3" tag attribute.
 void setArg4Expr(java.lang.String arg4Expr)
          Setter method for "arg4" tag attribute.
 void setBundleExpr(java.lang.String bundleExpr)
          Setter method for "bundle" tag attribute.
 void setKeyExpr(java.lang.String keyExpr)
          Setter method for "key" tag attribute.
 void setLocaleExpr(java.lang.String localeExpr)
          Setter method for "locale" 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.
 void setScopeExpr(java.lang.String scopeExpr)
          Setter method for "scope" tag attribute.
 
Methods inherited from class org.apache.struts.taglib.bean.MessageTag
getArg0, getArg1, getArg2, getArg3, getArg4, getBundle, getKey, getLocale, getName, getProperty, getScope, setArg0, setArg1, setArg2, setArg3, setArg4, setBundle, setKey, setLocale, setName, setProperty, setScope
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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

arg0Expr

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


arg1Expr

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


arg2Expr

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


arg3Expr

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


arg4Expr

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


bundleExpr

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


keyExpr

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


localeExpr

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


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


scopeExpr

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

Constructor Detail

ELMessageTag

public ELMessageTag()
Method Detail

getArg0Expr

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


getArg1Expr

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


getArg2Expr

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


getArg3Expr

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


getArg4Expr

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


getBundleExpr

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


getKeyExpr

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


getLocaleExpr

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


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


getScopeExpr

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


setArg0Expr

public void setArg0Expr(java.lang.String arg0Expr)
Setter method for "arg0" tag attribute. (Mapping set in associated BeanInfo class.)


setArg1Expr

public void setArg1Expr(java.lang.String arg1Expr)
Setter method for "arg1" tag attribute. (Mapping set in associated BeanInfo class.)


setArg2Expr

public void setArg2Expr(java.lang.String arg2Expr)
Setter method for "arg2" tag attribute. (Mapping set in associated BeanInfo class.)


setArg3Expr

public void setArg3Expr(java.lang.String arg3Expr)
Setter method for "arg3" tag attribute. (Mapping set in associated BeanInfo class.)


setArg4Expr

public void setArg4Expr(java.lang.String arg4Expr)
Setter method for "arg4" tag attribute. (Mapping set in associated BeanInfo class.)


setBundleExpr

public void setBundleExpr(java.lang.String bundleExpr)
Setter method for "bundle" tag attribute. (Mapping set in associated BeanInfo class.)


setKeyExpr

public void setKeyExpr(java.lang.String keyExpr)
Setter method for "key" tag attribute. (Mapping set in associated BeanInfo class.)


setLocaleExpr

public void setLocaleExpr(java.lang.String localeExpr)
Setter method for "locale" 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.)


setScopeExpr

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


release

public void release()
Resets attribute values for tag reuse.


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