Class LinkTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.jalios.jcms.taglib.UrlTag
com.jalios.jcms.taglib.LinkTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class LinkTag extends UrlTag
Output an href link using the given parameters.
Since:
jcms-5.7.0
Author:
Olivier Jaquemet
See Also:
  • Constructor Details

    • LinkTag

      public LinkTag()
  • Method Details

    • setTitle

      public void setTitle(String text)
    • setCss

      public void setCss(String css)
    • setHtmlAttributes

      public void setHtmlAttributes(String htmlAttributes)
    • setAccessibilityInfo

      public void setAccessibilityInfo(String accessibilityInfo)
    • setDataAttribute

      public void setDataAttribute(DataAttribute dataAttribute)
    • printLinkStart

      public void printLinkStart(javax.servlet.http.HttpServletRequest request, Writer out, Locale locale) throws Exception
      Print opening tag <a... href attribute with URL and other attributes.
      Parameters:
      request - the current HttpServletRequest
      out - the current JspWriter
      locale - the user Locale
      Throws:
      Exception
      Since:
      jcms-5.7.0
    • printDataName

      public void printDataName(Writer out, Locale locale) throws Exception
      Print the data name on the given writer.
      Parameters:
      out - the current JspWriter
      locale - the user Locale
      Throws:
      Exception
      Since:
      jcms-5.7.0
    • printLinkEnd

      public void printLinkEnd(javax.servlet.jsp.JspWriter out) throws Exception
      Print closing tag </a>.
      Parameters:
      out - the current JspWriter
      Throws:
      Exception
      Since:
      jcms-5.7.0
    • doStartTag

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

      public int doAfterBody() throws javax.servlet.jsp.JspException
      Specified by:
      doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
      Overrides:
      doAfterBody in class UrlTag
      Throws:
      javax.servlet.jsp.JspException
    • doEndTag

      public int doEndTag() throws javax.servlet.jsp.JspException
      Specified by:
      doEndTag in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class UrlTag
      Throws:
      javax.servlet.jsp.JspException