Bug 7730 - setRecipient and addRecipient tags not updating addresses when they are set dynamically in tag body.
Summary: setRecipient and addRecipient tags not updating addresses when they are set d...
Status: CLOSED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Mailer Taglib (show other bugs)
Version: unspecified
Hardware: Sun Solaris
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-03 17:57 UTC by Dawn Roth
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawn Roth 2002-04-03 17:57:24 UTC
The setRecipient and addRecipient tags never update their addresses if you set
them dynamically in the tag's body.  The tags pickup the first address ever set
in the tag body, and then use it over and over, regardless of how it changes.

<mt:setrecipient type="to"><%= toEmailAddr %></mt:setrecipient>

I downloaded the source and fixed this problem in my local copy by adding this
line:
address = null;  // reset address
to the doAfterBody() just above the return statement.

Please note that this bug prevents the dynamic setting of email addresses when
sending mail since the other ways of setting to addresses do not allow dynamic
values.

I am running on solaris 8, with Dynamo 5.5 app server.
Comment 1 rich 2002-04-03 18:19:05 UTC
Address is reset to null in the doAfterBody method