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&param2=value2"/>">LINK</a>
 
Author:
Tobias Soloschenko
See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Applies the url of wicket to the tag
     
     
    void
     
    void
     

    Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

    doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JspUrlTagSupport

      public JspUrlTagSupport()
  • Method Details

    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
      Applies the url of wicket to the tag
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class jakarta.servlet.jsp.tagext.TagSupport
      Throws:
      jakarta.servlet.jsp.JspException
    • getPage

      public String getPage()
    • setPage

      public void setPage(String page)
    • getQuery

      public String getQuery()
    • setQuery

      public void setQuery(String query)