You could try <c:set var="varSum" value="${variable1}${variable2}" />

Best regards,
Eric

-----Original Message-----
From: James Norman [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 26. August 2003 18:31
To: [EMAIL PROTECTED]
Subject: 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to