Class GetResourceTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.sling.scripting.jsp.taglib.GetResourceTag
- All Implemented Interfaces:
Serializable,IterationTag,JspTag,Tag
Tag for retrieving resources based on either an absolute path or a relative
path and a base resource.
- See Also:
-
Field Summary
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Default processing of the end tag returning EVAL_PAGE.getBase()Gets the base resource.getPath()Get the path of the resource to retrieve.getVar()Gets the variable name to which to save the list of children.voidSets the base resource.voidSet the path of the resource to retrieve.voidSets the variable name to which to save the list of children.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
GetResourceTag
public GetResourceTag()
-
-
Method Details
-
doEndTag
public int doEndTag()Description copied from class:TagSupportDefault processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Returns:
- EVAL_PAGE
- See Also:
-
getBase
Gets the base resource.- Returns:
- the base resource
-
getPath
Get the path of the resource to retrieve.- Returns:
- the path
-
getVar
Gets the variable name to which to save the list of children.- Returns:
- the variable name
-
setBase
Sets the base resource.- Parameters:
base- the new base resource
-
setPath
Set the path of the resource to retrieve.- Parameters:
path- the path
-
setVar
Sets the variable name to which to save the list of children.- Parameters:
var- the variable name
-