|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.tagext.TagSupport | +--javax.servlet.jsp.tagext.BodyTagSupport | +--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. |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
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 javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
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()
getId
in class javax.servlet.jsp.tagext.TagSupport
public void setId(java.lang.String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
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 javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.BodyTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if value was defined by an attributepublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |