JSTL - $variablename not working

Discussion in 'Java' started by jill, Apr 24, 2007.

  1. jill

    jill Guest

    Please let me know why below code is ot worknig and how to solve it.

    <c:choose>
    <c:when test='${(status.index)%2 eq 0}'>
    <c:set var="rowColor" value="even" scope="page"/>
    </c:when>
    </c:choose>

    <tr class="${rowColor}">

    I get "${rowcolor}" in html for above line of code -- <tr class="$
    {rowColor}">
    ..

    But <c:eek:ut value="${rowColor}"/> is worknig fine.

    So my question is how to display rowcolor in for class with c:eek:ut?
     
    jill, Apr 24, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris
    Replies:
    1
    Views:
    4,153
    Christophe Vanfleteren
    Jan 9, 2004
  2. Damian Sobieralski

    jstl and c:out value not being evaluated

    Damian Sobieralski, May 28, 2004, in forum: Java
    Replies:
    3
    Views:
    13,861
    Damian Sobieralski
    Jun 2, 2004
  3. Quick Function

    jstl does not work with foreach

    Quick Function, Jul 14, 2004, in forum: Java
    Replies:
    4
    Views:
    977
    Quick Function
    Jul 14, 2004
  4. Anonymous
    Replies:
    2
    Views:
    31,635
    phamlen
    Aug 31, 2006
  5. Joop Kaashoek

    JSTL commands do not work

    Joop Kaashoek, Sep 1, 2004, in forum: Java
    Replies:
    3
    Views:
    2,469
    Andrew Thompson
    Sep 2, 2004
  6. Robert Mark Bram

    Custom JSTL that accepts JSTL expression

    Robert Mark Bram, Dec 15, 2004, in forum: Java
    Replies:
    0
    Views:
    1,278
    Robert Mark Bram
    Dec 15, 2004
  7. jill
    Replies:
    1
    Views:
    402
  8. DaFoot
    Replies:
    1
    Views:
    2,037
    DaFoot
    Oct 23, 2008
Loading...