|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport net.sourceforge.scopes.taglib.CopyTag
public class CopyTag
It is a tag that allows to copy an attribute value between scopes. It is
particularly useful if you want to expose an attribute that is in some
special scopes, such as window scope.
It is encouraged to use this tag only to expose attribute value from special
scopes to page scope, so that it can be used in JSP pages.
Field Summary |
---|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
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 | |
---|---|
CopyTag()
|
Method Summary | |
---|---|
int |
doStartTag()
|
java.lang.String |
getFromScope()
Returns the scope from which the attribute must be copied. |
java.lang.String |
getName()
Returns the name of the attribute to copy. |
java.lang.String |
getToName()
Returns the name of the destination attribute. |
java.lang.String |
getToScope()
Returns the scope of the destination attribute. |
void |
release()
|
void |
setFromScope(java.lang.String fromScope)
Sets the scope from which the attribute must be copied. |
void |
setName(java.lang.String name)
Sets the name of the attribute to copy. |
void |
setToName(java.lang.String toName)
Sets the name of the destination attribute. |
void |
setToScope(java.lang.String toScope)
Sets the scope of the destination attribute. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyTag()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the source attribute.public java.lang.String getFromScope()
null
the attribute will be searched in every scope.
public void setFromScope(java.lang.String fromScope)
null
the attribute will be searched in every scope.
fromScope
- The source scope.public java.lang.String getToName()
null
the
name will be the same as the name of the source attribute
public void setToName(java.lang.String toName)
null
the
name will be the same as the name of the source attribute
toName
- The name of the destination attribute.public java.lang.String getToScope()
null
the attribute will be stored in "page" scope.
public void setToScope(java.lang.String toScope)
null
the
attribute will be stored in "page" scope.
toScope
- The scope of the destination attribute.public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |