|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.mailer.AttachTag
public class AttachTag
AttachTag - JSP tag Attach is used to set the message in an email.
| Field Summary |
|---|
| 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_BUFFERED, EVAL_BODY_TAG |
| 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 | |
|---|---|
AttachTag()
|
|
| 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 |
protected void |
setFileBodyPart(java.lang.String value)
wrap the file attachment in the approiate datahandler and create a mimebodypart to be added to the list of attachments |
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 |
protected void |
setUrlBodyPart(java.lang.String value)
wrap the url named attachment in the approiate datahandler and create a mimebodypart to be added to the list of attachments |
| 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 |
| Constructor Detail |
|---|
public AttachTag()
| Method Detail |
|---|
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - thrown when error occurs in processing the body of
this method
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - thrown when an error occurs while processing the
body of this method
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - thrown when error occurs in processing the body of
this methodpublic void setType(java.lang.String value)
value - string that is the mime type for this emailpublic void setUrl(java.lang.String value)
value - full url including http://, to the resource to be added as
an attachmentpublic void setFile(java.lang.String value)
value - name of the file to be added as an attachment
protected void setUrlBodyPart(java.lang.String value)
throws javax.servlet.jsp.JspException
value - string that represents a URL
javax.servlet.jsp.JspException
protected void setFileBodyPart(java.lang.String value)
throws javax.servlet.jsp.JspException
value - string that represents a file path
javax.servlet.jsp.JspException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||