org.apache.struts.taglib.html
Class HtmlTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.apache.struts.taglib.html.HtmlTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class HtmlTag
- extends javax.servlet.jsp.tagext.TagSupport
Renders an HTML element with appropriate language attributes if
there is a current Locale available in the user's session.
- Version:
- $Revision: 1.1 $ $Date: 2001/09/17 20:09:54 $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
Field Summary |
protected boolean |
locale
Should we set the current Locale for this user if needed? |
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, parent, values |
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 |
Method Summary |
protected java.util.Locale |
currentLocale()
Return the current Locale for this request, creating a new one if
necessary. |
int |
doEndTag()
Process the end of this tag. |
int |
doStartTag()
Process the start of this tag. |
boolean |
getLocale()
|
boolean |
getXhtml()
|
void |
release()
Release any acquired resources. |
void |
setLocale(boolean locale)
|
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, registerNatives, toString, wait, wait, wait |
messages
protected static MessageResources messages
- The message resources for this package.
locale
protected boolean locale
- Should we set the current Locale for this user if needed?
xhtml
protected boolean xhtml
- Are we rendering an xhtml page?
HtmlTag
public HtmlTag()
getLocale
public boolean getLocale()
setLocale
public void setLocale(boolean locale)
getXhtml
public boolean getXhtml()
setXhtml
public void setXhtml(boolean xhtml)
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Process the start of this tag.
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
- if a JSP exception has occurred
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Process the end of this tag.
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
- if a JSP exception has occurred
release
public void release()
- Release any acquired resources.
- Overrides:
release
in class javax.servlet.jsp.tagext.TagSupport
currentLocale
protected java.util.Locale currentLocale()
- Return the current Locale for this request, creating a new one if
necessary. If there is no current Locale, and locale support is not
requested, return
null
.
Copyright © 2000-2001 - Apache Software Foundation