Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 78976 invoked from network); 24 Jul 2003 08:56:43 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 24 Jul 2003 08:56:42 -0000 Received: (qmail 1469 invoked by uid 97); 24 Jul 2003 08:59:28 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 1461 invoked from network); 24 Jul 2003 08:59:24 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 24 Jul 2003 08:59:24 -0000 Received: (qmail 27723 invoked by uid 500); 24 Jul 2003 08:46:14 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 14627 invoked from network); 23 Jul 2003 18:52:23 -0000 X-Originating-IP: [203.94.234.115] X-Originating-Email: [pra_kadam@hotmail.com] From: "Prashant Kadam" To: tomcat-user@jakarta.apache.org Bcc: Subject: need Help Date: Thu, 24 Jul 2003 00:22:28 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 23 Jul 2003 18:52:28.0420 (UTC) FILETIME=[90709440:01C3514B] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have installed tomcat 4.1.6 I have created "Prashant" folder under "webApps" My Folder structure is webapps- |_Prashant |_Web-inf |_Classes----- |_ web.xml |_myservlet in server.xml. I added I could run JSP pages with URL "http://localhost:8080/Prashant/myjsp.jsp" but my servlets are not runnng. To run this servlet I entered URL"http://localhost:8080/Prashant/MyServlet" I added following lines to web.xml files MyServlet testServlet MyServlet /MyServlet What should I do to run this servlet. I my trying to use JDBC in JSP file, I added following lines to my servler.xml usernane sa password driverClassName sun.jdbc.odbc.JdbcOdbcDriver url jdbc:odbc:test & in web.xml But it throws Exception and gives message "Name jdbc is not bound in this Context" following codes are written in JSP files Context init = new InitialContext(); Context ctx = (Context) init.lookup("java:comp/env"); DataSource ds = (DataSource) ctx.lookup("jdbc/conversion"); Connection conn = ds.getConnection(); What else should I do to run these applications successfuly can anybody help me. My mail id is pra_kadam@hotmail.com _________________________________________________________________ Travel plans? Click here. http://www.msn.co.in/Travel Sit back & relax! --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org