wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
problem with JSTL
Inconsistent results with sql:param
How to get a connection from the connection pool in a servlet
simple select returns null
how to get the value in the text area (jsp)