tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From digby <li...@digby.net>
Subject Re: How to generate subject at runtime (Mailer2 Tag)
Date Fri, 12 May 2006 10:54:58 GMT
Don't you just want

subject="<%= request.getParameter('titolo')) %>"


lk wrote:
> Hi,
> 
> 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'));%>"
>     server="mailServer"
>     username="username"
>     password="passwrod"
>     background="false"
>     type="multipart/alternative"
>  >
> 
> I've tried both way to add a variable (scliplet and c:out tag) but 
> nothing: the subject I get contains exactly the code I've put in the 
> subject parameter.
> 
> Any idea?
> 
> Thanks
> 
> LuKe
> 
> 
> -- 
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
> 
> Sponsor:
> Prestiti e Finanziamenti con un semplice click, scopri subito se sei 
> finanziabile cliccando qui
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2910&d=8-5


---------------------------------------------------------------------
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