org.apache.taglibs.xtags.xpath
Class ContextTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.xtags.xpath.AbstractBodyTag
org.apache.taglibs.xtags.xpath.ForEachTag
org.apache.taglibs.xtags.xpath.ContextTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, ContextNodeTag
public class ContextTag
- extends ForEachTag
A tag which changes the current context for tags used inside its body.
It is similar to the tag except no looping is performed.
- Author:
- James Strachan
- See Also:
- Serialized Form
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 |
Method Summary |
int |
doStartTag()
|
protected boolean |
hasNext()
Performs an iteration and defines a variable of the current object |
Methods inherited from class org.apache.taglibs.xtags.xpath.ForEachTag |
breakLoop, createXPath, doAfterBody, finishLoop, getContext, getDocumentFactory, getId, getInputNodes, getType, isAscending, isDistinct, release, selectNodes, setAscending, setContext, setDistinct, setId, setSelect, setSelectXPath, setSort, setSortXPath, setType |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doEndTag, 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 |
ContextTag
public ContextTag()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class ForEachTag
- Throws:
javax.servlet.jsp.JspException
hasNext
protected boolean hasNext()
- Performs an iteration and defines a variable of the current object
- Overrides:
hasNext
in class ForEachTag
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.