public class HtmlTag
extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
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?
|
Constructor and Description |
---|
HtmlTag() |
Modifier and Type | Method and Description |
---|---|
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 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) |
protected static MessageResources messages
protected boolean xhtml
protected boolean lang
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.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredprotected String renderHtmlStartElement()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.