org.apache.struts.taglib.html
Class HtmlTag
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.
- Version:
- $Revision: 1.3 $ $Date: 2001/04/18 23:45:02 $
- Author:
- Craig R. McClanahan
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? |
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)
|
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.
- Throws:
JspException
- if a JSP exception has occurred
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Process the end of this tag.
- Throws:
JspException
- if a JSP exception has occurred
release
public void release()
- Release any acquired resources.
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-2002 - Apache Software Foundation