File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mysql_num_rows equivalent in JSP.

 
zohaib khan
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP is a view technology. You'd use JDBC to obtain the number of rows. I've moved this to the JDBC forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic