This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
How to get a connection from the connection pool in a servlet
problem with JSTL
how to get the value in the text area (jsp)
simple select returns null
Inconsistent results with sql:param