Package com.day.cq.wcm.tags
Class RequestURLTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.day.cq.wcm.tags.RequestURLTag
- All Implemented Interfaces:
Serializable,IterationTag,JspTag,Tag
RequestURLTag writes the current request URL to the current
JspWriter. The body of this tag allows multiple addParam and removeParam
tags to modify the current request URL before it is written.- 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 TypeMethodDescriptionvoidAdds a parameter with the givennameandvalue.intdoEndTag()Default processing of the end tag returning EVAL_PAGE.intDefault processing of the start tag, returning SKIP_BODY.voidrelease()Release state.voidremoveParam(String name) Removes the parameter and all its values with the givenname.voidremoveParam(String name, String value) Removes a value from the parameter with the givenname.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
RequestURLTag
public RequestURLTag()Default constructor.
-
-
Method Details
-
removeParam
Removes the parameter and all its values with the givenname.- Parameters:
name- the name of the parameter.
-
removeParam
Removes a value from the parameter with the givenname.- Parameters:
name- name of the parameter.value- the value to remove.
-
addParam
Adds a parameter with the givennameandvalue.- Parameters:
name- the name of the parameter.value- the value for the parameter.
-
release
public void release()Release state.- Specified by:
releasein interfaceTag- Overrides:
releasein classTagSupport- See Also:
-
doStartTag
Default processing of the start tag, returning SKIP_BODY.- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classTagSupport- Returns:
- SKIP_BODY
- Throws:
JspException- if an error occurs while processing this tag- See Also:
-
doEndTag
Default processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Returns:
- EVAL_PAGE
- Throws:
JspException- if an error occurs while processing this tag- See Also:
-