jstl not working for me
Gene McCullough <[email protected]> Tue, 24 May 2005 11:49:50 -0500
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
I have this code in my jsp (ought to look familiar, i think i robbed it
from app-crud at one point)
<logic:present name="header">
<tr>
<logic:iterate id="eachHeader" name="header" property="nested">
<td>
<logic:present name="eachHeader" property="attributes.sort">
<keel:command link="true" name="eachHeader"
property="attributes.sort">
<strong><bean:write name="eachHeader"/></strong>
</keel:command>
</logic:present>
<logic:notPresent name="eachHeader"
property="attributes.sort">
<strong><bean:write name="eachHeader"/></strong>
</logic:notPresent>
</td>
</logic:iterate>
</tr>
</logic:present>
That produces the desired results.
Adding the following directly beneath in the same page produces the
empty output. Any suggestions?
<c:if test="${! empty header}">
<tr>
<c:if test="${! empty header.map['nested']}">
not empty
</c:if>
<c:if test="${empty header.map['nested']}">
empty
</c:if>
</tr>
</c:if>
I also tried with header.map.nested, as in the menubar.jsp, with the
same results. the struts tags above can find the outputs, can you see
what I'm doing wrong with the jstl?
TIA
gene
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com