T
Tim Slattery
I'm trying to print out two values separated by a backslash on my
webpage. So I start with this:
${bean.firstval}\${bean.secondval}
Apparently the \ escapes the $, because I get:
BOS${bean.secondval}
So I tried a double backslash, so that the first would escape the
second:
${bean.firstval}\\${bean.secondval}
And I got this:
BOS\${bean.secondval}
Apparently the first was interpreted as a constant, and the second as
an escape for the $. The closest I've come is to put a space before
the second $:
${bean.firstval}\ ${bean.secondval}
Which gives:
BOS\ JBLow
But that space shouldn't be there. Is there a way to get the backslash
without the space?
webpage. So I start with this:
${bean.firstval}\${bean.secondval}
Apparently the \ escapes the $, because I get:
BOS${bean.secondval}
So I tried a double backslash, so that the first would escape the
second:
${bean.firstval}\\${bean.secondval}
And I got this:
BOS\${bean.secondval}
Apparently the first was interpreted as a constant, and the second as
an escape for the $. The closest I've come is to put a space before
the second $:
${bean.firstval}\ ${bean.secondval}
Which gives:
BOS\ JBLow
But that space shouldn't be there. Is there a way to get the backslash
without the space?