David Goodenough wrote:
Looking at the PDF of Appendix A of the JSTL book it would appear that there
is no operator for concatenating strings. Following the EcmaScript model one
would assume that it should be +, but is this right?
Also if I wanted to add a ' to a string in an expression of the form:-
<c:set var="var" value="${'string=\'' + var + '\''}"
the parser seems to reject this. What would be the correct form of the
expression?
There's no string concatenation operator in the EL, but you can have
more than one EL expression mixed with static text in an attribute to
accomplish the same thing:
<c:set var="var" value="string='${var}'"
Hans
--
Hans Bergsten <[EMAIL PROTECTED]>
Gefion Software <http://www.gefionsoftware.com/>
Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
Details at <http://TheJSPBook.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]