• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in displaying an array conditionally using display tag

 
reena rathod
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using display tag to display an array of objects from session depending on certain condition using <c:if (JSTL tag). But the problem is it will display a blank row in between the table if the condition fails and there onwards it will continue.

Every thing works fine accept the display(blank rows inbetween the table)

Any body has the solution for it?

check out the code and attached screen


<display:table name="sessionScope.SecureMessages.messages" id="row"
requestURI="/messageChange.do">

<display:column title="Date" sortable="true"
headerClass="columnheader" sortProperty="createdDate"
defaultorder="ascending" class="tdclass">
<c:if test="${row.fromType == 1}">
<fmt:formatDate value="${row.createdDate}"
pattern="M/dd/yy" />
</c:if>
</display:column>

<display:column title="From" sortable="true"
headerClass="columnheader" sortProperty="To">

<c:if test="${row.fromType == 1}">
<cut value="${row.to}" />

</c:if>
</display:column>
</display:table>
display_tag_problem.jpg
blanks inbetween the table
[Thumbnail for display_tag_problem.jpg]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"roy ranchy", please check your private messages for an important administrative matter.
 
reena patil
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
even I have the same problem... any body has the solution for this other then creating suppurate lists depending on the condition?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic