Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 94634 invoked from network); 15 Apr 2011 16:51:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2011 16:51:11 -0000 Received: (qmail 32405 invoked by uid 500); 15 Apr 2011 16:51:08 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32264 invoked by uid 500); 15 Apr 2011 16:51:08 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 32255 invoked by uid 99); 15 Apr 2011 16:51:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Apr 2011 16:51:08 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [98.138.91.54] (HELO nm6-vm0.bullet.mail.ne1.yahoo.com) (98.138.91.54) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 15 Apr 2011 16:50:59 +0000 Received: from [98.138.90.50] by nm6.bullet.mail.ne1.yahoo.com with NNFMP; 15 Apr 2011 16:50:37 -0000 Received: from [98.138.89.172] by tm3.bullet.mail.ne1.yahoo.com with NNFMP; 15 Apr 2011 16:50:37 -0000 Received: from [127.0.0.1] by omp1028.mail.ne1.yahoo.com with NNFMP; 15 Apr 2011 16:50:37 -0000 X-Yahoo-Newman-Id: 485749.79533.bm@omp1028.mail.ne1.yahoo.com Received: (qmail 98246 invoked from network); 15 Apr 2011 16:50:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1302886236; bh=dzA/fTg9QFETxUSPGHBqKBX7vxiW+xeSA/8yXfdbKy0=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=fbtxZe8wZQjzUe82WLIIAHcqvqXAnMSdllXDgmunOQcgmDwoS4RU85MXqlPgAd7NLkMwCMbTAPsnDRMiovSZQehIya8tZawYJB4dDMNKUVX7IV/rwoG0H1WRESNyWPbIV26TwwIlcG4WnM/UQc5wZDodg+iYytdjgY1EO+DjeAs= Received: from 91.sub-75-202-185.myvzw.com (jhubbslist@75.202.185.91 with plain) by smtp105.sbc.mail.gq1.yahoo.com with SMTP; 15 Apr 2011 09:50:35 -0700 PDT X-Yahoo-SMTP: nDIEWE2swBBK1MBnA6Ka6uwrAUy9MzM53nrMpyNLYQ-- X-YMail-OSG: ZB1g58wVM1k7UTSBIAiFydN6lAfUXtWE8w_GwgAsB2mCgj4 Fj7lFM5E_3hOLiOGgEpA5c4c23MTDTvAQnQFCgpjX_8rULEEuGhQgnB17Tg0 klH09mOeARgt01k_qSAn3bvLw3vIyGWLFxcfCg486sELFsHXPms5I.MCIP5V QE0Pb0mOWMZNSwyxI_1ZGQEAGmbwjR5E9OlOfNO7RRtBv8sggKCdzIIgInnE 35irLlncygq7xz3oPxuHB4amcXvQ6ahFnFxUoPqaLkVu9.y2awGsbTbsjfrq pdKbkIvOya_37dVKGUHz9gfr9L4CKdhvd3pHnqxW1aNqGWg-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4DA87756.9010400@att.net> Date: Fri, 15 Apr 2011 12:50:30 -0400 From: Jeff Hubbs User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Working of Tomcat with MS Access References: <8CDC99A43BAA16B-177C-A63E@webmail-m051.sysops.aol.com> In-Reply-To: <8CDC99A43BAA16B-177C-A63E@webmail-m051.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org MySQL is indeed another good Open Source RDBMS; I would not call it "lightweight" in that it is used to power some mighty big Web apps, but the implementation does seem a little quaint. On 4/15/11 11:38 AM, Troy wrote: > Raj; > > To all reading this response, this is my first response on this list so if I get it a little wrong have patience. > > You may want to look at the light weight RDBMS mysql. It is free, easily installed and can be utilized with the companion Workbench to make dealing with the db very easy, a lot like the access interface. You will have good driver support from the java end as well and a lot of documentation and tutorials to get you connected in your web app to your persistence layer. > > mysql.com > > Just my two cents and an attempt to give back a little to the community. > > Troy > > > > > > > > > > > -----Original Message----- > From: RAHUL RAJ > To: users > Sent: Fri, Apr 15, 2011 6:05 am > Subject: Working of Tomcat with MS Access > > > Hello, > > I am working on building a jsp website with MS Access as > > database. When my login page is loaded on tomcat > > (localhost:8080/login.jsp), it shows the following error: > > > > java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source > > name not found and no default driver specified. > > > > The jdbc program alone is working perfectly, So There might not be > > problems due to Driver, Data source name, Database Tables or any > > other software version compatibilities. > > > > OS: Windows Vista Home Basic > > Tomcat Version: 5.5.x > > jdk version: 1.6 > > MS Access 2010 > > > > > > code is given below: > > > > <%@ page language="java" import="java.sql.*" %> > > > > > >
> >

Enter your username :

> >

Enter your password :

> > > > <% > > String usn = request.getParameter("username"); > > String pass = request.getParameter("password"); > > > > try{ > > Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); > > String url = "jdbc:odbc:rahul"; > > Connection con = DriverManager.getConnection(url, "", ""); > > Statement s = con.createStatement(); > > > > ResultSet rs = s.executeQuery("select * from customers"); > > while(rs.next()) > > { > > String u = rs.getString(1); > > String p = rs.getString(2); > > if(usn.equals(u)&& pass.equals(p)) > > { > > out.println("login successfull"); > > } > > else > > { > > out.println("login failed"); > > } > > } > > } > > > > catch(Exception e) > > { > > out.println("Error"+e); > > } > > > > %> > >
> > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org