The Mailer taglib does not support the EL at this time. Supporting the EL will require changes to the taglib.
Second, you can either hardcode attributes such as to, from, etc. in the mail tag itself. Or you can set them dynamically by nesting the <mt:setrecipient> tag inside the <mt:mail> tag. The mailer taglib example and docs show how to do this. Regards, Glenn Stefan wrote:
Hi, Did the following and it does not work: <%@ taglib uri="http://jakarta.apache.org/taglibs/mailer-1.0" prefix="mt" %> <%@ taglib prefix='c_rt' uri='http://java.sun.com/jstl/core_rt' %> <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %> <% String from_ = "[EMAIL PROTECTED]"; String to_ = "[EMAIL PROTECTED]"; %> </head> <body> <h2>Jakarta Mail Works Great!</h2> <c_rt:set var="to" scope="session" value="<%= to_ %>"/> <mt:mail server="mail.lonewolfe.com" to="<c:out value='${to}'/>" from="[EMAIL PROTECTED]" subject="Jakarta mail taglib"> <mt:message type="html"> Thanks, Stef ----- Original Message ----- From: "Mark Goking" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 10:44 PM Subject: RE: Jakarta Mailer if you say that it doesnt work then put those variables in a <c:set var="from" value="<%= from_ %>"/> or <c:set var"from"> <%= from_ %> </c:set> mark -----Original Message----- From: Stefan [mailto:nickm@;studioweb.com] Sent: Friday, November 15, 2002 11:16 AM To: Tag Libraries Users List Subject: Re: Jakarta Mailer Hi, This works: <%@ taglib uri="http://jakarta.apache.org/taglibs/mailer-1.0" prefix="mt" %> <mt:mail server="mail.lonewolfe.com" to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" subject="Jakarta mail taglib"> <mt:message type="html"> -> And this does not work for me, perhaps you can see why: <%@ taglib uri="http://jakarta.apache.org/taglibs/mailer-1.0" prefix="mt" %> <% String from_ = "[EMAIL PROTECTED]"; String to_ = "[EMAIL PROTECTED]"; %> </head> <body> <h2>Jakarta Mail Works Great!</h2> <mt:mail server="mail.lonewolfe.com" to="<%= to_ %>" from="<%= from_ %>" subject="Jakarta mail taglib"> <mt:message type="html"> ----- Original Message ----- From: "Mark Goking" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 10:10 PM Subject: RE: Jakarta Mailer stefan, that works. maybe you have other code problems that resulted in that not working. you can use <%= %> inside "" but not inside "${}" mark -----Original Message----- From: Stefan [mailto:nickm@;studioweb.com] Sent: Friday, November 15, 2002 11:07 AM To: Tag Libraries Users List Subject: Jakarta Mailer Hi, I want to be able to pass dynamic values for some the the taglibs attributes: <mt:mail server="mail.lonewolfe.com" to="<%= to %>" from="<%= from %>" subject="Jakarta mail taglib"> This does not seem to work, is this a context issue? If so would using JSTL ${param.parameterName} work or c:set ? Thanks, Stef --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.410 / Virus Database: 231 - Release Date: 10/31/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.410 / Virus Database: 231 - Release Date: 10/31/2002 -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org> --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.410 / Virus Database: 231 - Release Date: 10/31/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.410 / Virus Database: 231 - Release Date: 10/31/2002 -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>
-- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>
