struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Canning" <ccann...@ccanning.com>
Subject [OT] Problem with html-el and JSTL
Date Thu, 31 Jul 2003 05:02:41 GMT
Hi,

I have a form using html-el and jstl. I have a loop inside the form

<c:forEach items="${headerList}" var="header">
 <c:choose>
  <c:when test="${index} % 2 == 0">
   <TR bgcolor="FFEDED">
  </c:when>
  <c:otherwise>
    <TR bgcolor="FFD8D8">
  </c:otherwise>
 </c:choose>
 <td>
  <c:out value="${header.sender}"/>
  <c:out value="${header.subject}"/>
  <c:out value="${header.messageId}"/>
 </td>
</tr>
</c:forEach>

The forEach gets the two objects oin the list, but the <c:out> tags return
empty strings? Does anyone know what might be causing this. If I do a <c:out
value="${header}"> it prints the address of a jstl object. I know this is
slightly off-topic, but not sure whereelse to look. Thanks.

Chuck


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message