Class LinkTag

  • All Implemented Interfaces:
    Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class LinkTag
    extends UrlTag
    a tag to build hypertext links with mapped URLs
    See Also:
    Serialized Form
    • Constructor Detail

      • LinkTag

        public LinkTag()
    • Method Detail

      • clear

        protected void clear()
        Description copied from class: CpnlBodyTagSupport
        Reset all member variables to the (default) start values. Called prior processing the tag and at release time.
        Overrides:
        clear in class UrlTag
      • setTarget

        public void setTarget​(String target)
      • setBody

        public void setBody​(Object value)
        if the 'body' expression is 'true' the body is rendered without a link around even if 'test' is 'false'
      • getBodyResult

        protected boolean getBodyResult()
        evaluates the 'body' test expression if present and returns the evaluation result; default: 'true'
      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class TagBase
        Throws:
        javax.servlet.jsp.JspException
      • setHref

        public void setHref​(String href)