org.apache.taglibs.mailer2
Class AddRecipientTag

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

public class AddRecipientTag
extends ReplyToTag

JSP tag mt:addrecipient is used to add 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
 
Fields inherited from class org.apache.taglibs.mailer2.ReplyToTag
log, tagName
 
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
AddRecipientTag()
          Default zero-arg constructor.
 
Method Summary
 void addRecipient(String address, String name)
          Add a recipient of a particular type to the parent of this tag.
 String getType()
          Returns the type of address.
 void release()
           
 void setType(String type)
          Set the type of recipient.
 
Methods inherited from class org.apache.taglibs.mailer2.ReplyToTag
doAfterBody, doEndTag, doStartTag, getAddress, getBody, getName, setAddress, setBody, setName
 
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
 

Constructor Detail

AddRecipientTag

public AddRecipientTag()
Default zero-arg constructor.

Method Detail

addRecipient

public void addRecipient(String address,
                         String name)
                  throws JspException
Add a recipient of a particular type to the parent of this tag.

Overrides:
addRecipient in class ReplyToTag
Parameters:
address - The e-mail address
name - The real name
Throws:
JspException - Upon error

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class ReplyToTag

getType

public String getType()
Returns the type of address.

Returns:
The type, either "to", "cc", or "bcc"

setType

public void setType(String type)
Set the type of recipient.

Parameters:
type - Address type, either "to", "cc" or "bcc"


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