org.apache.taglibs.mailer2
Class SendTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.taglibs.mailer2.SendTag
All Implemented Interfaces:
IterationTag, JspTag, Serializable, Tag

public class SendTag
extends TagSupport

JSP tag mt:send is used to send a previously stored message.

Version:
2.0
Author:
Jeroen van Vianen
See Also:
Serialized Form

Field Summary
protected  boolean background
          Whether a background thread is used to send the mail, default true.
 Logger log
          Used for logging.
 MimeMessage message
          The message to send.
 
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
SendTag()
          Default zero-arg constructor.
 
Method Summary
 int doEndTag()
           
 MimeMessage getMessage()
          Returns the javax.mail.MimeMessage object.
 boolean isBackground()
          Returns the background attribute.
 void release()
           
 void setBackground(boolean background)
          Sets the background attribute.
 void setMessage(MimeMessage message)
          Sets the message attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, resetCustomAttributes, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public Logger log
Used for logging.


message

public MimeMessage message
The message to send.


background

protected boolean background
Whether a background thread is used to send the mail, default true.

Constructor Detail

SendTag

public SendTag()
Default zero-arg constructor.

Method Detail

doEndTag

public int doEndTag()
             throws JspException
Throws:
JspException

release

public void release()

setMessage

public void setMessage(MimeMessage message)
Sets the message attribute.

Parameters:
message - The Message to send

setBackground

public void setBackground(boolean background)
Sets the background attribute.

Parameters:
background - True if background thread should be used

getMessage

public MimeMessage getMessage()
Returns the javax.mail.MimeMessage object.

Returns:
The Message

isBackground

public boolean isBackground()
Returns the background attribute.

Returns:
Background attrribute


Copyright © 2004 Apache Software Foundation, http://jakarta.apache.org/taglibs