File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts display properties

 
sudhir pavan
Ranch Hand
Posts: 35
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic