• Post Reply Bookmark Topic Watch Topic
  • New Topic

Empty Table Notification

 
Bernard Bobinski
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Table entitled rpdnotification that has the following fields - subject, authority, startdate, narrative, and rundays. It prints out on a report for x number of days (Normally the user will select 5 days). Sometimes there are no notifications. Is there a way to load a message into the subject field that if the table has 0 records than subject would equal "None at this time"?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming that the results are a collection loaded into a scoped variable named results, such conditionals are easy using JSTL actions:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!