|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.ivata.mask.web.tag.util.MapEntryTag
This tag must always be contained within a MapTag
and defines the name and value of an entry in the map.
Tag attributes:
| attribute | reqd. | param. class | description |
|---|---|---|---|
| mapName | false | String |
If the mapEntry is not inside a
map tag, use this attribute to specify a
java.util.Map instance in the current page
context. |
| name | true | String |
Specifies the name of the entry to put in the parent map. |
| value | false | String |
Specifies the value of the entry with the name speciified. If this attribute is not specified, you should specify a tag body. |
| Field Summary |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, 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 | |
MapEntryTag()
|
|
| Method Summary | |
int |
doAfterBody()
This method is called after the JSP engine processes the body content of the tag. |
int |
doEndTag()
This method is called after the JSP engine finished processing the tag. |
int |
doStartTag()
This method is called when the JSP engine encounters the start tag, after the attributes are processed. |
java.lang.String |
getMapName()
If the mapEntry is not inside a map
tag, use this attribute to specify a java.util.Map
instance in the current page context. |
java.lang.String |
getName()
Specifies the name of the entry to put in the parent map. |
java.lang.String |
getValue()
Specifies the value of the entry to put in the parent map. |
void |
setMapName(java.lang.String mapNameParam)
If the mapEntry is not inside a map
tag, use this attribute to specify a java.util.Map
instance in the current page context. |
void |
setName(java.lang.String nameParam)
Specifies the name of the entry to put in the parent map. |
void |
setValue(java.lang.String valueParam)
Specifies the value of the entry to put in the parent map. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
| Constructor Detail |
public MapEntryTag()
| Method Detail |
public int doAfterBody()
throws javax.servlet.jsp.JspException
This method is called after the JSP engine processes the body content of the tag.
SKIP_BODY since we only ever want to evaluate
this tag once.
javax.servlet.jsp.JspException - encapsulates any exception when calling
writeTagBodyContent.#writeTagBodyContent( JspWriter out, BodyContent bodyContent
)
public int doEndTag()
throws javax.servlet.jsp.JspException
This method is called after the JSP engine finished processing the tag.
EVAL_PAGE since we always want to evaluate
the page after this tag.
javax.servlet.jsp.JspException - encapsulates any exception when calling
out.println
public int doStartTag()
throws javax.servlet.jsp.JspException
This method is called when the JSP engine encounters the start tag, after the attributes are processed.
Scripting variables (if any) have their values set here.
EVAL_BODY_BUFFERED if no value was specified,
otherwise SKIP_BODY.
javax.servlet.jsp.JspException - encapsulates any exception when calling
out.printlnpublic final java.lang.String getMapName()
If the mapEntry is not inside a map
tag, use this attribute to specify a java.util.Map
instance in the current page context.
public final java.lang.String getName()
Specifies the name of the entry to put in the parent map.
public final java.lang.String getValue()
Specifies the value of the entry to put in the parent map.
public final void setMapName(java.lang.String mapNameParam)
If the mapEntry is not inside a map
tag, use this attribute to specify a java.util.Map
instance in the current page context.
mapNameParam - the new value of mapName.public final void setName(java.lang.String nameParam)
Specifies the name of the entry to put in the parent map.
nameParam - the new value of name.public final void setValue(java.lang.String valueParam)
Specifies the value of the entry to put in the parent map.
valueParam - the new value of value.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||