Save This Page
Home » struts-1.3.9-src » org.apache.struts.taglib » html » [javadoc | source]
org.apache.struts.taglib.html
public class: HtmlTag [javadoc | source]
java.lang.Object
   javax.servlet.jsp.tagext.TagSupport
      org.apache.struts.taglib.html.HtmlTag

All Implemented Interfaces:
    IterationTag, Serializable

Direct Known Subclasses:
    ELHtmlTag

Renders an HTML element with appropriate language attributes if there is a current Locale available in the user's session.
Field Summary
protected static  MessageResources messages    The message resources for this package. 
protected  boolean locale    Should we set the current Locale for this user if needed?
     
    protected  boolean xhtml    Are we rendering an xhtml page? 
    protected  boolean lang    Are we rendering a lang attribute?
      since: Struts - 1.2
     
    Method from org.apache.struts.taglib.html.HtmlTag Summary:
    doEndTag,   doStartTag,   getCurrentLocale,   getLang,   getLocale,   getXhtml,   release,   renderHtmlStartElement,   setLang,   setLocale,   setXhtml
    Methods from javax.servlet.jsp.tagext.TagSupport:
    doAfterBody,   doEndTag,   doStartTag,   findAncestorWithClass,   getId,   getParent,   getValue,   getValues,   release,   removeValue,   setId,   setPageContext,   setParent,   setValue
    Methods from java.lang.Object:
    equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
    Method from org.apache.struts.taglib.html.HtmlTag Detail:
     public int doEndTag() throws JspException 
      Process the end of this tag.
     public int doStartTag() throws JspException 
      Process the start of this tag.
     protected Locale getCurrentLocale() 
    Deprecated! This - will be removed after Struts 1.2.

      Return the current Locale for this request. If there is no locale in the session and the locale attribute is set to "true", this method will create a Locale based on the client's Accept-Language header or the server's default locale and store it in the session. This will always return a Locale and never null.
     public boolean getLang() 
      Returns true if the tag should render a lang attribute.
     public boolean getLocale() 
    Deprecated! This - will be removed after Struts 1.2.

     public boolean getXhtml() 
     public  void release() 
      Release any acquired resources.
     protected String renderHtmlStartElement() 
      Renders an <html> element with appropriate language attributes.
     public  void setLang(boolean lang) 
      Sets whether the tag should render a lang attribute.
     public  void setLocale(boolean locale) 
    Deprecated! This - will be removed after Struts 1.2.

     public  void setXhtml(boolean xhtml)