how to use logic:Empty within c:forEach

P

PC Leung

The following coding always return blank values.
If I remove logic tags, it shows values correctly.
How can I use logic:Empty inside c:forEach ?

Thanks

<c:forEach items="${resultSet.rows}" var="row">
<tr>
<td width="20%">
<logic:empty name="${row.usernm}">
&nbsp
</logic:empty>
<logic:notEmpty name="${row.usernm}">
${row.usernm}
</logic:notEmpty>
</td>
<td width="50">
<logic:empty name="${row.usergrp}">
&nbsp
</logic:empty>
<logic:notEmpty name="${row.usergrp}">
${row.usergrp}
</logic:notEmpty>
</td>
</tr>
</c:forEach>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top