JSTL concatenate  
Author Message
jf@noemai.com





PostPosted: 5/30/2005 6:11:00 PM Top

java-programmer, JSTL concatenate Well.. i wanna to concatenate a string... like:

String x;

while(true)
x += "x";


Then i get xxxxxxxxxxxxxxxxxxxx :)

How do i do that on JSTL?

Here is my code...

<c:set var="valorColuna" value="${rowValues.value}"/>

<c:forEach var="pk" items="${datagrid.primaryKeys}">
<c:set var="pkActual" value="${pk.columnName}"/>
<c:if test="${colunaActual == pkActual}">
<c:set var="pkValor" value="${valorColuna}{$valorColuna}"/>

I have tried without operators but it does not work. JSTL functions
also seem not to help (no concat function!)...

Any sugestions?

Thanks,

JF

 
Wendy Smoak





PostPosted: 5/31/2005 1:39:00 AM Top

java-programmer >> JSTL concatenate "email***@***.com" <email***@***.com> wrote:

> <c:set var="pkValor" value="${valorColuna}{$valorColuna}"/>

{$valorCaluna} should be ${valorCaluna} (you have the $ and { switched in
the second one.)

If that's not the problem, try changing == to eq instead. I don't know if
they have different functions in JSTL, but in 'regular' Java == and equals
are certainly different.

If you're still stuck, post a complete example-- yours is missing end tags.

--
Wendy Smoak




 
jf@noemai.com





PostPosted: 5/31/2005 5:12:00 AM Top

java-programmer >> JSTL concatenate thanks..

it worked...
JF