strutsdisplaytag

How to remove Nothing Found To Display in Display Tag of Struts 1.3


I want to remove the message Nothing Found to Display in Struts 1.3 Display Tag , When no record fetch from database.

Its possible to do this...?


Solution

  • From my point of view the default behavior should be that no message must be displayed in case of empty data source.

    The empty_list didn't work in my case. I tried this and it works:

    <display:table ...
       <display:setProperty name="basic.msg.empty_list" value="" />
    
       <display:column ...
       ...
    </display:table>
    

    You can also customize you message in html format:

    <display:setProperty name="basic.msg.empty_list" 
        value="<span style=\"font-size:12px\">No data</span>" />
    

    I hope it will help...