tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <has...@webtuitive.com>
Subject Re: How to generate subject at runtime (Mailer2 Tag)
Date Mon, 08 May 2006 13:24:39 GMT
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="anAddress@pippo.com"
>     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 ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
                opinion: webtuitive.blogspot.com
				
                          dream.  code.



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message