You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by James Norman <ja...@perceptive.com> on 2003/08/26 18:31:13 UTC
concatenate strings
Hi All,
I have two variables that I set using the c:set tags.
<c:set var="variable1" value="someValue" />
<c:set var="variable2" value="1" />
And I want to concatenate the two and store the value in another var.
<c:setl var="varSum" value="${variable1 + variable2}" />
But this blows up with an error message. Any ideas?
Thanks,
James Norman
Re: concatenate strings
Posted by Henri Yandell <ba...@generationjava.com>.
Just do:
<c:setl var="varSum" value="${variable1}${variable2}" /> ??
Think that would work.
Hen
On 26 Aug 2003, James Norman wrote:
> Hi All,
> I have two variables that I set using the c:set tags.
>
> <c:set var="variable1" value="someValue" />
> <c:set var="variable2" value="1" />
>
> And I want to concatenate the two and store the value in another var.
> <c:setl var="varSum" value="${variable1 + variable2}" />
>
> But this blows up with an error message. Any ideas?
>
> Thanks,
> James Norman
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>