Forgive my noob question.
I've used the search tool but haven't found the info I need.
I'd like to connect from
jsp to SQL and do a simple query.
I've come up with this amount of code so far, but it fails left right and center...
I'm using MS SQL Server 2000 and
Tomcat, jdk is 1.4.1_06
I can't even get this line to run:
<%@ page language="java" import="java.sql.*" %>
<%
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
%>
the error I get is:
javax.servlet.ServletException: com.microsoft.jdbc.sqlserver.SQLServerDriver
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.test_jsp._jspService(test_jsp.java:59)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
any ideas to help guide me along?
I downloaded and installed teh "SQL Server 2000 Driver for
JDBC Service Pack 2" from the microsoft site and I set the PATH variable, but do I need to modify the server.xml and web.xml files?
[ September 20, 2004: Message edited by: Geoff Garcia ]