java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.tagext.BodyTagSupport
com.newmediaworks.taglib.email.EmailTag
- All Implemented Interfaces:
PartTag,BodyTag,IterationTag,JspTag,Tag,TryCatchFinally,Serializable
Formats an email then sends the message or stores in an attribute. The message is constructed through nested tags.
- Author:
- New Media Works
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScopeEE.Request.Attribute<String> The request attribute that stores the error message.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Please useERROR_REQUEST_ATTRIBUTEinstead.static final StringFields inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields 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 TypeMethodDescriptionvoidvoidaddToAddress(String to) Adds a to address.voidintdoEndTag()voidintvoidsetContent(Multipart content) voidsetContent(Object o, String type) voidvoidsetFileName(String filename) voidSets the from address.voidvoidvoidsetSmtpHost(String smtpHost) voidsetSmtpPort(Integer smtpPort) voidsetSubject(String subject, String charset) Sets the subject.voidMethods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Field Details
-
TAG_NAME
- See Also:
-
ERROR_REQUEST_ATTRIBUTE_NAME
Deprecated, for removal: This API element is subject to removal in a future version.Please useERROR_REQUEST_ATTRIBUTEinstead.The request attribute name that stores the error message. -
ERROR_REQUEST_ATTRIBUTE
The request attribute that stores the error message. -
ERROR_REQUEST_PARAMETER_NAME
Deprecated, for removal: This API element is subject to removal in a future version.Please useERROR_REQUEST_ATTRIBUTEinstead.The request attribute name that stores the error message.
-
-
Constructor Details
-
EmailTag
public EmailTag()
-
-
Method Details
-
setSmtpHost
-
setSmtpPort
-
setVar
-
setScope
-
doStartTag
- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classBodyTagSupport- Throws:
JspException
-
addToAddress
Adds a to address.- Throws:
MessagingException
-
setFrom
Sets the from address.- Throws:
MessagingException
-
setSubject
Sets the subject.- Throws:
MessagingException
-
addHeader
- Specified by:
addHeaderin interfacePartTag- Throws:
MessagingException
-
setHeader
- Specified by:
setHeaderin interfacePartTag- Throws:
MessagingException
-
setContent
- Specified by:
setContentin interfacePartTag- Throws:
MessagingException
-
setContent
- Specified by:
setContentin interfacePartTag- Throws:
MessagingException
-
setDataHandler
- Specified by:
setDataHandlerin interfacePartTag- Throws:
MessagingException
-
setFileName
- Specified by:
setFileNamein interfacePartTag- Throws:
MessagingException
-
doEndTag
- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classBodyTagSupport- Throws:
JspException
-
doCatch
- Specified by:
doCatchin interfaceTryCatchFinally- Throws:
Throwable
-
doFinally
public void doFinally()- Specified by:
doFinallyin interfaceTryCatchFinally
-

ERROR_REQUEST_ATTRIBUTEinstead.