public class DefineTag
extends javax.servlet.jsp.tagext.BodyTagSupport
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
DefineTag() |
Modifier and Type | Method and Description |
---|---|
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) |
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
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
public String getId()
getId
in class javax.servlet.jsp.tagext.TagSupport
public void setId(String id)
setId
in class javax.servlet.jsp.tagext.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 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.IterationTag
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
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.