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

abhu74 picture abhu74 · May 13, 2011 · Viewed 9k times · Source

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...?

Answer

Augusto picture Augusto · May 26, 2011

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...