You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by ca...@apache.org on 2002/04/03 19:48:37 UTC
cvs commit: jakarta-taglibs/mailer/src/org/apache/taglibs/mailer SetRecipientTag.java AddRecipientTag.java
catlett 02/04/03 09:48:36
Modified: mailer/src/org/apache/taglibs/mailer SetRecipientTag.java
AddRecipientTag.java
Log:
fixed a bug so that if the recipient tags are immediately reused the same value will not be used (added a reset)
Revision Changes Path
1.5 +4 -3 jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SetRecipientTag.java
Index: SetRecipientTag.java
===================================================================
RCS file: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SetRecipientTag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SetRecipientTag.java 27 Mar 2002 16:47:59 -0000 1.4
+++ SetRecipientTag.java 3 Apr 2002 17:48:36 -0000 1.5
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SetRecipientTag.java,v 1.4 2002/03/27 16:47:59 catlett Exp $
- * $Revision: 1.4 $
- * $Date: 2002/03/27 16:47:59 $
+ * $Header: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SetRecipientTag.java,v 1.5 2002/04/03 17:48:36 catlett Exp $
+ * $Revision: 1.5 $
+ * $Date: 2002/04/03 17:48:36 $
*
* ====================================================================
*
@@ -180,6 +180,7 @@
if (type.equalsIgnoreCase("bcc"))
// set bcc in the parent tag
myparent.setBcc(address);
+ address = null; // reset address so tag can be reused
return SKIP_BODY;
} else
throw new JspException("Address was not found. set " +
1.5 +4 -3 jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/AddRecipientTag.java
Index: AddRecipientTag.java
===================================================================
RCS file: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/AddRecipientTag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AddRecipientTag.java 27 Mar 2002 16:47:59 -0000 1.4
+++ AddRecipientTag.java 3 Apr 2002 17:48:36 -0000 1.5
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/AddRecipientTag.java,v 1.4 2002/03/27 16:47:59 catlett Exp $
- * $Revision: 1.4 $
- * $Date: 2002/03/27 16:47:59 $
+ * $Header: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/AddRecipientTag.java,v 1.5 2002/04/03 17:48:36 catlett Exp $
+ * $Revision: 1.5 $
+ * $Date: 2002/04/03 17:48:36 $
*
* ====================================================================
*
@@ -180,6 +180,7 @@
if (type.equalsIgnoreCase("bcc"))
// set bcc in the parent tag
myparent.addBcc(address);
+ address = null; // reset address so tag can be reused
return SKIP_BODY;
} else
throw new JspException("Address was not found. set " +
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>