File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struts display properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts display properties" Watch "struts display properties" New topic

struts display properties

sudhir pavan
Ranch Hand

Joined: Sep 01, 2011
Posts: 35
<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" />

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

Joined: Mar 02, 2005
Posts: 445

According to the documentation:
Tag Column

Check out Attributes - nulls.
Sunil Sunny
Ranch Hand

Joined: Oct 18, 2011
Posts: 41
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.

I agree. Here's the link:
subject: struts display properties
It's not a secret anymore!