org.apache.taglibs.mailer2
Class AddRecipientTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.mailer2.ReplyToTag
org.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
| 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 |
AddRecipientTag
public AddRecipientTag()
- Default zero-arg constructor.
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 addressname - 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