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

struts display properties

 
sudhir pavan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<display:table id="student" name="studentList" pagesize="5" export="true" requestURI="/queryStudent" >
<display:column property="father_name" title="father_name" />
<display:column property="qualification_code"></display:column>
<display:column property="contact_no" sortable="true" />
<display:column property="address" sortable="true" />
<display:setProperty name="paging.banner.placement" value="bottom" />
</display:table>

i need to display column qualification if it return value in the list, if the qualificaton is null, then in the table it should n't display the qualification column for the particular record.
fathername qualification contactno address
------------------------
ss B.E 98 ss
dd 98 dd
------------------------
is this is possible
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

According to the documentation:
Tag Column

Check out Attributes - nulls.
 
Sunil Sunny
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No I do not think so that is possible as display tag library generates table so in a table you always have a heading . if anyone of the "List Of records " contain a value for your "qualification coloumn" it will display that and even you will get a "Table heading" on the top for that column.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic