org.apache.taglibs.mailer2
Class ReplyToTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.taglibs.mailer2.ReplyToTag
All Implemented Interfaces:
BodyTag, IterationTag, JspTag, Serializable, Tag
Direct Known Subclasses:
AddRecipientTag

public class ReplyToTag
extends BodyTagSupport

JSP tag mt:replyto is used to add replyto-to recipients to an e-mail message.

It is a child of mt:mail.

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

Field Summary
 Logger log
          Used for logging.
protected  String tagName
          The name of the tag.
 
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
ReplyToTag()
          Default zero-arg constructor.
 
Method Summary
 void addRecipient(String address, String name)
          Add the reply-to recipient to the parent MailTag.
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
 String getAddress()
          Returns the address.
 String getBody()
          Returns the body content.
 String getName()
          Returns the real name.
 void release()
           
 void setAddress(String address)
          Sets the e-mail address.
 void setBody(String body)
          Sets the body attribute.
 void setName(String name)
          Sets the real name of the recipient.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

log

public Logger log
Used for logging.


tagName

protected String tagName
The name of the tag.

Constructor Detail

ReplyToTag

public ReplyToTag()
Default zero-arg constructor.

Method Detail

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspException
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Throws:
JspException

release

public void release()

addRecipient

public void addRecipient(String address,
                         String name)
                  throws JspException
Add the reply-to recipient to the parent MailTag.

Parameters:
address - The e-mail address
name - The real name
Throws:
JspException - Upon error

getAddress

public String getAddress()
Returns the address.

Returns:
The e-mail address

setAddress

public void setAddress(String address)
Sets the e-mail address.

Parameters:
address - The e-mail address

getBody

public String getBody()
Returns the body content.

Returns:
The body content

setBody

public void setBody(String body)
Sets the body attribute.

Parameters:
body - The body content

getName

public String getName()
Returns the real name.

Returns:
The real name

setName

public void setName(String name)
Sets the real name of the recipient.

Parameters:
name - The real name


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