Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
TagSupport
org.apache.struts.taglib.html.HtmlTag
public class HtmlTag
extends TagSupport
Field Summary | |
protected boolean |
|
protected boolean |
|
protected static MessageResources |
|
protected boolean |
|
Method Summary | |
int |
|
int |
|
protected Locale |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
protected String |
|
void |
|
void |
|
void |
|
protected boolean lang
Are we rendering a lang attribute?
- Since:
- Struts 1.2
protected boolean locale
Deprecated. This will be removed after Struts 1.2.
Should we set the current Locale for this user if needed?
protected boolean xhtml
Are we rendering an xhtml page?
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.
- Since:
- Struts 1.1
public boolean getLang()
Returns true if the tag should render a lang attribute.
- Since:
- Struts 1.2
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.
- Since:
- Struts 1.2
public void setLang(boolean lang)
Sets whether the tag should render a lang attribute.
- Since:
- Struts 1.2
public void setLocale(boolean locale)
Deprecated. This will be removed after Struts 1.2.
public void setXhtml(boolean xhtml)