org.apache.jackrabbit.taglib
Class CdTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.jackrabbit.taglib.SetTag
org.apache.jackrabbit.taglib.CdTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class CdTag
- extends SetTag
Changes the current directory. Nested tags must read the paths relative to
this node.
- Author:
- Edgar Poce
- See Also:
- Serialized Form
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 |
CdTag()
Constructor |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, 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 |
CdTag
public CdTag()
- Constructor
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class SetTag
- Throws:
javax.servlet.jsp.JspException
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class SetTag
- Throws:
javax.servlet.jsp.JspException
release
public void release()
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class SetTag
setNode
public void setNode(java.lang.String node)
- Sets the node
- Parameters:
node
-
getItem
protected javax.jcr.Item getItem()
throws javax.servlet.jsp.JspException,
javax.jcr.RepositoryException
- Retrieve and validate the Item. It must be a Node instance.
- Overrides:
getItem
in class SetTag
- Returns:
- curren working node
- Throws:
javax.servlet.jsp.JspException
javax.jcr.RepositoryException
Copyright © 2005 . All Rights Reserved.