This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • 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
[Thumbnail for display_tag_problem.jpg]
blanks inbetween the table
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64835
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