Package org.wicketstuff.jeeweb.jsp
Class JspUrlTagSupport
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.wicketstuff.jeeweb.jsp.JspUrlTagSupport
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
public class JspUrlTagSupport
extends jakarta.servlet.jsp.tagext.TagSupport
Tag Support to generate a wicket url within a jsp. The tag library can be defined within the
<jsp-config> tag in the web.xml. Every jar which is included in the
lib folder of the webapp project will automatically scanned if a taglib.tld is located in
the META-INF folder. If so the tag library is automatically added.
Example of web.xml definition:
<taglib>
<taglib-uri>uri</taglib-uri>
<taglib-location>/WEB-INF/jsp/mytaglib.tld<taglib-location>
</taglib>
Usage: To use the taglib and this tag you only have to define it in the jsp:
<%@ taglib prefix="wicket" uri="http://wicketstuff-jee-web.org/functions/jsp" %> Tag: url // Parameters: page(required), query(optional) // Example: <a href="<wicket:url page="mypage.MyTestPage" query="param1=value1¶m2=value2"/>">LINK</a>
- Author:
- Tobias Soloschenko
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
JspUrlTagSupport
public JspUrlTagSupport()
-
-
Method Details
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionApplies the url of wicket to the tag- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException
-
getPage
-
setPage
-
getQuery
-
setQuery
-