|
-
Java Q: whats JSP package?
I am creating a class for JSP. Purpose of this class is to connect to the database and declare some initial variables. So if i want to do connect to DB and run some query, I just pass SQL query and all is done.
But when i run this line (to load JDBC-ODBC drivers):
Class.forName("Sun.jdbc.JdbcOdbcDriver");
its gives me error:
unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
I am only importing:
import java.sql.*;
I cannot import:
javax.servlet.jsp.*;
Am i importing the wrong methods? or is the JDK that came with Jbuilder6 enterprise is not enterprise JDK?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|