You were close:

<c:set var="name" value="${firstname} ${lastname}" />

There's no JSTL concatenation operator (that I know). Whatever you want the separator
between them to be, just put it there. In this instance, it's a space.

Keith


---------- Original Message -----------
From: David Schwartz <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Mon, 23 Aug 2004 13:37:30 -0400
Subject: String concatenation

> Is there a way to concatenate strings in JSTL 1.1?
> For example, <c:set var = "Name" value = "${firstName + lastName}" />
> 
> David Schwartz
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
------- End of Original Message -------


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

Reply via email to