Bug 9324 - Pasting token (email to adresss field) fails
Summary: Pasting token (email to adresss field) fails
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Mailer Taglib (show other bugs)
Version: 1.0
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2002-05-22 18:17 UTC by Larry Banks
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Larry Banks 2002-05-22 18:17:36 UTC
When an email address is pasted into the "to sender" field as a token, it's
taken as a literal. The code works when I hardcode the email address, but not
when I paste it in,
i.e, in a JSP document

<mt:mail to="user@netscape.net" works but
<mt:mail to="<%= email%>" does not.

Also, mailer.jar doesn't seem to contain addto or setto methods.


org.apache.jasper.JasperException: No such tag addto in the tag library imported
with prefix mt
	at org.apache.jasper.compiler.TagLibraries.isUserDefinedTag(TagLibraries.java:97)
Comment 1 Glenn Nielsen 2002-10-31 05:13:51 UTC
Please try the latest nighly build 20021031 or later.
You can nest a setrecipient tag inside the mt:mail tag to set the
to address dynamically.  Or the addrecipient tag to add a to address.