Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 22nd, 2003, 10:50 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with JSP and MSSQL Server 2000

Hello,

I am working through the book and am currently on page 91 (data). I can't get the drivers to work with the syntax specified. Here is my code:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql_rt" %>

<sql:setDataSource var="datasource"
        driver="com.microsoft.jdbc.sqlserver.SQLServerDriv er"
        url="jdbc:microsoft:sqlserver://host:1433"
        user="sa"
        password="xxxxxx"
        />

<sql:query var="contacts" dataSource="${datasource}">
  SELECT contactID, firstName, lastName FROM wk0..contacts
</sql:query>

I can't see anything wrong with this, but am always getting back:

org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: "No suitable driver"
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:254)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:247)
:(

I've tried placing the MS drivers is lots of different locations, but to no avail. Has anyone got this working with MS SQL Server 2000? What could I possibly be doing wrong here?

Thanks
Khalid





Similar Threads
Thread Thread Starter Forum Replies Last Post
loading webshop into MSSQL 2000 mcarol44 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 October 19th, 2007 07:56 AM
MSSQL 2005 and MSSQL 2000 tiredcat Visual Basic 2005 Basics 0 April 9th, 2007 12:56 AM
Full Text Search using MSSQL 2000 + ASP.net 2.0 shaileshk ADO.NET 0 February 6th, 2007 06:17 AM
SQL Server 2000 + JSP sobiaa SQL Server 2000 0 October 11th, 2006 01:29 AM
jdbc connection to MSsql & CachedRowSet problems chandrakanth2000 Java Databases 1 September 7th, 2004 04:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.