Class EMailLinkTag

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

public class EMailLinkTag extends TagSupport
A JSP Tag to display a Pilot's e-mail address.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • 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 Tag
      Overrides:
      release in class TagSupport
    • doEndTag

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