This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes check sql:query for no data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "check sql:query for no data" Watch "check sql:query for no data" New topic
Author

check sql:query for no data

liliya woland
Ranch Hand

Joined: Apr 11, 2006
Posts: 134
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

Joined: Apr 11, 2006
Posts: 134
I got the testing for no data to work with the following code:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: check sql:query for no data