Re: How to generate subject at runtime (Mailer2 Tag)
Hassan Schroeder <[email protected]>
| Newsgroups | gmane.comp.jakarta.taglibs.user |
|---|---|
| Message-ID | <[email protected]> |
lk wrote: > I'm using Mailer2 to send automatic mail to some address. > I would like to generate automatically the subject passing a variable > but I can't! > > My code is: > <mt:mail > from="[email protected]" > subject="<% out.system(request.getParameter('titolo'));%>" If you're using a 2.4 container and JSTL 1.1, you'd have, e.g.: subject="${param.titolo}" :: which I can vouch works just fine :-) HTH! -- Hassan Schroeder ----------------------------- [email protected] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com opinion: webtuitive.blogspot.com dream. code.