org.apache.taglibs.mailer
Class AttachTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--javax.servlet.jsp.tagext.BodyTagSupport
|
+--org.apache.taglibs.mailer.AttachTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class AttachTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
AttachTag - JSP tag Attach is used to set the message in an email.
attach
org.apache.taglibs.mailer.AttachTag
JSP
Adds attachments to email.
- Version:
- 1.0
- Author:
- Rich Catlett Jayson Falkner
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
int |
doAfterBody()
implementation of the method from the tag interface that tells the JSP
page what to do after the body of this tag |
int |
doEndTag()
implementation of method from the Tag interface that tells the JSP what
to do upon encountering the end tag for this tag set |
int |
doStartTag()
implementation of method from the Tag interface that tells the JSP what
to do upon encountering the start tag for this tag set |
void |
setFile(java.lang.String value)
set the named file up as an attachment to be added to the list of
attachments for this e-mail |
void |
setType(java.lang.String value)
set the mime type for this email text or html |
void |
setUrl(java.lang.String value)
set the resource named by URL into a mimebodypart so that it can be added
to the list of attachments for this e-mail |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
AttachTag
public AttachTag()
doStartTag
public final int doStartTag()
throws javax.servlet.jsp.JspException
- implementation of method from the Tag interface that tells the JSP what
to do upon encountering the start tag for this tag set
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- EVAL_BODY_TAG - integer value telling the JSP engine to evaluate
the body of this tag
- Throws:
javax.servlet.jsp.JspException
- thrown when error occurs in processing the body of
this method
doAfterBody
public final int doAfterBody()
throws javax.servlet.jsp.JspException
- implementation of the method from the tag interface that tells the JSP
page what to do after the body of this tag
- Overrides:
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- SKIP_BODY int telling the tag handler to not evaluate the body
of this tag again
- Throws:
JSPException
- thrown when an error occurs while processing the
body of this method
doEndTag
public final int doEndTag()
throws javax.servlet.jsp.JspException
- implementation of method from the Tag interface that tells the JSP what
to do upon encountering the end tag for this tag set
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- - integer value telling the JSP engine whether or not to evaluate
the body of this tag
- Throws:
javax.servlet.jsp.JspException
- thrown when error occurs in processing the body of
this method
setType
public final void setType(java.lang.String value)
- set the mime type for this email text or html
- Parameters:
value
- string that is the mime type for this email
setUrl
public final void setUrl(java.lang.String value)
- set the resource named by URL into a mimebodypart so that it can be added
to the list of attachments for this e-mail
- Parameters:
value
- full url including http://, to the resource to be added as
an attachment
setFile
public final void setFile(java.lang.String value)
- set the named file up as an attachment to be added to the list of
attachments for this e-mail
- Parameters:
value
- name of the file to be added as an attachment
Copyright ? 2000 Apache Software Foundation. All Rights Reserved.