org.apache.taglibs.mailer2
Class SaveTag

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

public class SaveTag
extends TagSupport

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

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

Field Summary
 Logger log
          Used for logging.
 
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
SaveTag()
          Default zero-arg constructor.
 
Method Summary
 int doEndTag()
           
 String getFile()
          Returns the file attribute.
 MimeMessage getMessage()
          Returns the javax.mail.MimeMessage object.
 void release()
           
 void setFile(String file)
          Sets the location to store the message.
 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.

Constructor Detail

SaveTag

public SaveTag()
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

getMessage

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

Returns:
The Message

getFile

public String getFile()
Returns the file attribute.

Returns:
The file attribute

setFile

public void setFile(String file)
Sets the location to store the message.

Parameters:
file - The location to store the message


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