aspose file tools*
The moose likes JDBC and the fly likes mysql_num_rows equivalent in JSP. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "mysql_num_rows equivalent in JSP." Watch "mysql_num_rows equivalent in JSP." New topic
Author

mysql_num_rows equivalent in JSP.

zohaib khan
Greenhorn

Joined: Apr 13, 2009
Posts: 22
Hi,

I am developing pagination in JSP.

I want to get number of records return by query.

In PHP we have function mysql_num_rows which give count of rows return by query.

Any idea how to get number of rows in JSP.



- Thanks
Zohaib.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

JSP is a view technology. You'd use JDBC to obtain the number of rows. I've moved this to the JDBC forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: mysql_num_rows equivalent in JSP.