Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

check sql:query for no data

 
liliya woland
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Could someone please tell if there is a way to check if the sql command below produces any data or not? I'd like to be able to tell the jsp user that there is no data when the sql command returns no data. Thanks in advance.
 
liliya woland
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the testing for no data to work with the following code:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic