Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mysql_num_rows equivalent in JSP.

 
zohaib khan
Greenhorn
Posts: 22
  • 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: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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