Bug 9324

Summary: Pasting token (email to adresss field) fails
Product: Taglibs Reporter: Larry Banks <banksl>
Component: Mailer TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: CLOSED FIXED    
Severity: major    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

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.

e.g.,

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.