How to remove anything found to display in the displayed Struts 1.3 tag

I want to delete the Nothing Found message to display in the Struts 1.3 Display Tag if there is no record from the database.

Is it possible to do this ??

+4
source share
4 answers

From my point of view, the default behavior should be that in the case of an empty data source, the message should not be displayed.

empty_list does not 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 your message in html format:

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

Hope this helps ...

+7
source

You can set the configuration property for the mapping table. See here for more details .

The configuration property for installation is basic.msg.empty_list_row , which defaults to "Nothing found to display". cost. See this page for more details .

So your code will look something like this:

 <display:table ... > <display:setProperty name="basic.msg.empty_list_row"> ... insert your choise here ... </display:setProperty> ... </display:table> 
+2
source

remove the "pagesize" attribute, it fixes the problem for struts2 and Displaytag 1.2 (this annoying message is called "PageBanner"

0
source

Add the following entry to the file "displaytag.properties" and put the file in the Class Path -

 basic.msg.empty_list= 

You can also install any message here -

basic.msg.empty_list=No matching entries found !!!

-2
source

All Articles