Class EMailLinkTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.html.EMailLinkTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class EMailLinkTag extends jakarta.servlet.jsp.tagext.TagSupport
A JSP Tag to display a Pilot's e-mail address.
Since:
1.0
Version:
7.0
Author:
Luke
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
    Renders a link to the user's e-mail address to the JSP output stream
    void
    Resets the tag's state variables.
    void
    Updates the CSS class to format the label with.
    void
    Sets a label to display instead of the e-mail address.
    void
    Updates the Person to display.

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

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

    Methods inherited from class Object

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

    • EMailLinkTag

      public EMailLinkTag()
  • Method Details

    • setUser

      public void setUser(Person p)
      Updates the Person to display.
      Parameters:
      p - the Person
    • setClassName

      public void setClassName(String cName)
      Updates the CSS class to format the label with.
      Parameters:
      cName - the CSS class name
    • setLabel

      public void setLabel(String label)
      Sets a label to display instead of the e-mail address.
      Parameters:
      label - the label
    • release

      public void release()
      Resets the tag's state variables.
      Specified by:
      release in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      release in class jakarta.servlet.jsp.tagext.TagSupport
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      Renders a link to the user's e-mail address to the JSP output stream
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      TagSupport.EVAL_PAGE
      Throws:
      jakarta.servlet.jsp.JspException - if an error occurs