• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JDBC

 
Yurong Chen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I met two problems in my project:
1. I wrote the following application. It can be complied. However, when I run it, i get the error message:

My Application.java is as followed:

2. I want to count rows when I select something from tables. I use the following jsp programming. However, I cannot get the variable "count"'s value after I execute the SQL. The SQL is The method I want to get the value of "Count" is
My whole program is as followed:

Can anybody help me ?? Thank you in advance!
Yurong
 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U set the classpath ur mysql driver..then u can get the result..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic