tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith" <pdra...@pdragon.net>
Subject Re: String concatenation
Date Mon, 23 Aug 2004 17:58:01 GMT
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 <ds@arrayone.com>
To: taglibs-user@jakarta.apache.org
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: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
------- End of Original Message -------


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