common.tags.generic
Class GetLocalTextTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
common.tags.generic.GetLocalTextTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.Tag
public class GetLocalTextTag
- extends javax.servlet.jsp.tagext.TagSupport
- See Also:
- Serialized Form
|
Field Summary |
private java.lang.String |
key
|
private java.lang.String |
name
|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
|
Method Summary |
int |
doEndTag()
Uses the LocaleBean, available in a scope as a variable
specified by the "name" property, to retrieve the text
resource specified by the "key" property. |
void |
release()
Releases all instance variables. |
void |
setKey(java.lang.String key)
Sets the resource key property. |
void |
setName(java.lang.String name)
Sets the LocaleBean name property. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doStartTag, 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 |
name
private java.lang.String name
key
private java.lang.String key
GetLocalTextTag
public GetLocalTextTag()
setName
public void setName(java.lang.String name)
- Sets the LocaleBean name property.
- Parameters:
name - the name of the LocaleBean
setKey
public void setKey(java.lang.String key)
- Sets the resource key property.
- Parameters:
key - the resource key in the current ResourceBundle
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Uses the LocaleBean, available in a scope as a variable
specified by the "name" property, to retrieve the text
resource specified by the "key" property. The result
is added to the response body.
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
release
public void release()
- Releases all instance variables.
- Specified by:
release in interface javax.servlet.jsp.tagext.Tag- Overrides:
release in class javax.servlet.jsp.tagext.TagSupport