|
||||||||||
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
public class DefineTag
Define a scripting variable based on the value(s) of the specified bean property.
Field Summary | |
---|---|
protected String |
body
The body content of this tag (if any). |
protected 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 String |
name
The name of the bean owning the property to be exposed. |
protected String |
property
The name of the property to be retrieved. |
protected String |
scope
The scope within which to search for the specified bean. |
protected String |
toScope
The scope within which the newly defined bean will be creatd. |
protected String |
type
The fully qualified Java class name of the value to be exposed. |
protected 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_BUFFERED, EVAL_BODY_TAG |
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 |
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 |
String |
getId()
|
String |
getName()
|
String |
getProperty()
|
String |
getScope()
|
String |
getToScope()
|
String |
getType()
|
String |
getValue()
|
void |
release()
Release all allocated resources. |
void |
setId(String id)
|
void |
setName(String name)
|
void |
setProperty(String property)
|
void |
setScope(String scope)
|
void |
setToScope(String toScope)
|
void |
setType(String type)
|
void |
setValue(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 String body
protected String id
protected String name
protected String property
protected String scope
protected String toScope
protected String type
protected String value
Constructor Detail |
---|
public DefineTag()
Method Detail |
---|
public String getId()
getId
in class TagSupport
public void setId(String id)
setId
in class TagSupport
public String getName()
public void setName(String name)
public String getProperty()
public void setProperty(String property)
public String getScope()
public void setScope(String scope)
public String getToScope()
public void setToScope(String toScope)
public String getType()
public void setType(String type)
public String getValue()
public void setValue(String value)
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
doAfterBody
in class BodyTagSupport
JspException
- if value was defined by an attributepublic int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic void release()
release
in interface Tag
release
in class BodyTagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |