aspose file tools*
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
Author

struts display properties

sudhir pavan
Ranch Hand

Joined: Sep 01, 2011
Posts: 34
<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

Joined: Mar 02, 2005
Posts: 443
    
    1


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.

 
Don't get me started about those stupid light bulbs.
 
subject: struts display properties
 
Similar Threads
display tag to use link in
struts2 + display tags + maps
How to assign value to a Radio button in <display:column> tag
DisplayTag Export Question?
Internationalization of display tag