org.apache.strutsel.taglib.html
Class ELHtmlTag

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

public class ELHtmlTag
extends org.apache.struts.taglib.html.HtmlTag

Renders an HTML element with appropriate language attributes if there is a current Locale available in the user's session.

This class is a subclass of the class org.apache.struts.taglib.html.HtmlTag 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 langExpr
          Instance variable mapped to "lang" tag attribute.
private  java.lang.String localeExpr
          Instance variable mapped to "locale" tag attribute.
private  java.lang.String xhtmlExpr
          Instance variable mapped to "xhtml" tag attribute.
 
Fields inherited from class org.apache.struts.taglib.html.HtmlTag
lang, locale, messages, xhtml
 
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
ELHtmlTag()
           
 
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 getLangExpr()
          Getter method for "lang" tag attribute.
 java.lang.String getLocaleExpr()
          Getter method for "locale" tag attribute.
 java.lang.String getXhtmlExpr()
          Getter method for "xhtml" tag attribute.
 void release()
          Resets attribute values for tag reuse.
 void setLangExpr(java.lang.String langExpr)
          Setter method for "lang" tag attribute.
 void setLocaleExpr(java.lang.String localeExpr)
          Setter method for "locale" tag attribute.
 void setXhtmlExpr(java.lang.String xhtmlExpr)
          Setter method for "xhtml" tag attribute.
 
Methods inherited from class org.apache.struts.taglib.html.HtmlTag
doEndTag, getCurrentLocale, getLang, getLocale, getXhtml, renderHtmlStartElement, setLang, setLocale, setXhtml
 
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

langExpr

private java.lang.String langExpr
Instance variable mapped to "lang" 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.)


xhtmlExpr

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

Constructor Detail

ELHtmlTag

public ELHtmlTag()
Method Detail

getLangExpr

public java.lang.String getLangExpr()
Getter method for "lang" 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.)


getXhtmlExpr

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


setLangExpr

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


setXhtmlExpr

public void setXhtmlExpr(java.lang.String xhtmlExpr)
Setter method for "xhtml" 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