|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.html.HtmlTag
public class HtmlTag
Renders an HTML element with appropriate language attributes if there is a current Locale available in the user's session.
| Field Summary | |
|---|---|
protected boolean |
lang
Are we rendering a lang attribute? |
protected static MessageResources |
messages
The message resources for this package. |
protected boolean |
xhtml
Are we rendering an xhtml page? |
| 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 | |
|---|---|
HtmlTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Process the end of this tag. |
int |
doStartTag()
Process the start of this tag. |
boolean |
getLang()
Returns true if the tag should render a lang attribute. |
boolean |
getXhtml()
|
void |
release()
Release any acquired resources. |
protected java.lang.String |
renderHtmlStartElement()
Renders an <html> element with appropriate language attributes. |
void |
setLang(boolean lang)
Sets whether the tag should render a lang attribute. |
void |
setXhtml(boolean xhtml)
|
| 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 |
|---|
protected static MessageResources messages
protected boolean xhtml
protected boolean lang
| Constructor Detail |
|---|
public HtmlTag()
| Method Detail |
|---|
public boolean getXhtml()
public void setXhtml(boolean xhtml)
public boolean getLang()
public void setLang(boolean lang)
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - if a JSP exception has occurredprotected java.lang.String renderHtmlStartElement()
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - if a JSP exception has occurredpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||