|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBodyTagSupport
org.apache.struts.taglib.bean.DefineTag
Define a scripting variable based on the value(s) of the specified bean property.
Field Summary | |
protected java.lang.String |
body
The body content of this tag (if any). |
protected java.lang.String |
id
The name of the scripting variable that will be exposed as a page scope attribute. |
protected static MessageResources |
messages
The message resources for this package. |
protected java.lang.String |
name
The name of the bean owning the property to be exposed. |
protected java.lang.String |
property
The name of the property to be retrieved. |
protected java.lang.String |
scope
The scope within which to search for the specified bean. |
protected java.lang.String |
toScope
The scope within which the newly defined bean will be creatd. |
protected java.lang.String |
type
The fully qualified Java class name of the value to be exposed. |
protected java.lang.String |
value
The (String) value to which the defined bean will be set. |
Constructor Summary | |
DefineTag()
|
Method Summary | |
int |
doAfterBody()
Save the body content of this tag (if any), or throw a JspException if the value was already defined. |
int |
doEndTag()
Retrieve the required property and expose it as a scripting variable. |
int |
doStartTag()
Check if we need to evaluate the body of the tag |
java.lang.String |
getId()
|
java.lang.String |
getName()
|
java.lang.String |
getProperty()
|
java.lang.String |
getScope()
|
java.lang.String |
getToScope()
|
java.lang.String |
getType()
|
java.lang.String |
getValue()
|
void |
release()
Release all allocated resources. |
void |
setId(java.lang.String id)
|
void |
setName(java.lang.String name)
|
void |
setProperty(java.lang.String property)
|
void |
setScope(java.lang.String scope)
|
void |
setToScope(java.lang.String toScope)
|
void |
setType(java.lang.String type)
|
void |
setValue(java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static MessageResources messages
protected java.lang.String body
protected java.lang.String id
protected java.lang.String name
protected java.lang.String property
protected java.lang.String scope
protected java.lang.String toScope
protected java.lang.String type
protected java.lang.String value
Constructor Detail |
public DefineTag()
Method Detail |
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getProperty()
public void setProperty(java.lang.String property)
public java.lang.String getScope()
public void setScope(java.lang.String scope)
public java.lang.String getToScope()
public void setToScope(java.lang.String toScope)
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public int doStartTag() throws JspException
JspException
- if a JSP exception has occurredpublic int doAfterBody() throws JspException
JspException
- if value was defined by an attributepublic int doEndTag() throws JspException
JspException
- if a JSP exception has occurredpublic void release()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |