org.apache.taglibs.xtags.xpath
Class AddTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.xtags.xpath.AbstractBodyTag
org.apache.taglibs.xtags.xpath.AddTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class AddTag
- extends AbstractBodyTag
The add tag parses it's body (as an XML fragment) and appends the contents to the
current node. The current node must be an Element.
- Author:
- James Elson
- See Also:
- Serialized Form
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 |
Method Summary |
protected org.dom4j.XPath |
createXPath(java.lang.String xpathExpression)
A factory method to create new XPath instances |
int |
doEndTag()
|
protected org.dom4j.DocumentFactory |
getDocumentFactory()
|
void |
release()
|
void |
setAfter(java.lang.String after)
Sets an XPath expression used to determine a child element of the current element. |
void |
setBefore(java.lang.String before)
Sets an XPath expression used to determine a child element of the current element. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, 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 |
AddTag
public AddTag()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
release
public void release()
setAfter
public void setAfter(java.lang.String after)
- Sets an XPath expression used to determine a child element of the current element.
The body contents will be inserted just before the first node that matches this
XPath.
setBefore
public void setBefore(java.lang.String before)
- Sets an XPath expression used to determine a child element of the current element.
The body contents will be inserted just after the first node that matches this
XPath.
createXPath
protected org.dom4j.XPath createXPath(java.lang.String xpathExpression)
- A factory method to create new XPath instances
getDocumentFactory
protected org.dom4j.DocumentFactory getDocumentFactory()
- Returns:
- the factory used to create XPath instances
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.