org.apache.struts.taglib
Class GetPropertyTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.apache.struts.taglib.GetPropertyTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class GetPropertyTag
- extends javax.servlet.jsp.tagext.TagSupport
Expose the value of a bean property as a scripting variable.
- Version:
- $Revision: 1.7 $ $Date: 2001/05/20 01:19:02 $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
|
Field Summary |
private java.lang.String |
id
The name of the scripting variable to be exposed. |
protected static MessageResources |
messages
The message resources for this package. |
private java.lang.String |
name
The name of the bean owning the property. |
private java.lang.String |
property
The property name to be exposed. |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
int |
doStartTag()
Retrieve the required property and expose it as a scripting variable. |
java.lang.String |
getId()
Return the name of the scripting variable. |
java.lang.String |
getName()
Return the name of the bean. |
java.lang.String |
getProperty()
Return the property name. |
void |
release()
Release any acquired resources. |
void |
setId(java.lang.String id)
Set the name of the scripting variable. |
void |
setName(java.lang.String name)
Set the name of the bean. |
void |
setProperty(java.lang.String property)
Set the property name. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
id
private java.lang.String id
- The name of the scripting variable to be exposed.
messages
protected static MessageResources messages
- The message resources for this package.
name
private java.lang.String name
- The name of the bean owning the property.
property
private java.lang.String property
- The property name to be exposed.
GetPropertyTag
public GetPropertyTag()
getId
public java.lang.String getId()
- Return the name of the scripting variable.
- Overrides:
getId in class javax.servlet.jsp.tagext.TagSupport
setId
public void setId(java.lang.String id)
- Set the name of the scripting variable.
- Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport
- Parameters:
id - The new name of the scripting variable
getName
public java.lang.String getName()
- Return the name of the bean.
setName
public void setName(java.lang.String name)
- Set the name of the bean.
- Parameters:
name - The new name
getProperty
public java.lang.String getProperty()
- Return the property name.
setProperty
public void setProperty(java.lang.String property)
- Set the property name.
- Parameters:
property - The property name
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Retrieve the required property and expose it as a scripting variable.
- Overrides:
doStartTag 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
Copyright © 2000-2002 - Apache Software Foundation