Class EMailLinkTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.html.EMailLinkTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
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 javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Renders a link to the user's e-mail address to the JSP output streamvoid
release()
Resets the tag's state variables.void
setClassName
(String cName) 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 javax.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:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doEndTag
Renders a link to the user's e-mail address to the JSP output stream- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an error occurs
-