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, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Renders a link to the user's e-mail address to the JSP output streamvoidrelease()Resets the tag's state variables.voidsetClassName(String cName) Updates the CSS class to format the label with.voidSets a label to display instead of the e-mail address.voidUpdates 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
-
Constructor Details
-
EMailLinkTag
public EMailLinkTag()
-
-
Method Details
-
setUser
-
setClassName
Updates the CSS class to format the label with.- Parameters:
cName- the CSS class name
-
setLabel
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:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.servlet.jsp.tagext.TagSupport
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspExceptionRenders a link to the user's e-mail address to the JSP output stream- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- TagSupport.EVAL_PAGE
- Throws:
jakarta.servlet.jsp.JspException- if an error occurs
-