Dear galbreath,Mark

i am using JRUN4.0 on WIN NT . i have created a datasource as 'dgftcon' .
now i want to use this datasource in my programme to access the data from
database.
for that i have used following script ( i am using JDk1.3 and jsdk2.1)
mport javax.servlet.*;
import javax.servlet.http.*;
import java.io.PrintWriter;
import java.io.IOException;
import java.sql.*;
import java.util.*;
import javax.sql.DataSource;
import javax.naming.InitialContext;

some class code

 public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
  {InitialContext ctx = new InitialContext();
   DataSource ds = (DataSource) ctx.lookup("db2con");
   con = ds.getConnection();



i am getting error at
import.javax.sql.Datasource
error is 'can not resolve symbol'

pl. help me to sort out this error.

with regards,
avinash


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:SERVLET-INTEREST@;JAVA.SUN.COM]On Behalf Of
Galbreath, Mark
Sent: Thursday, October 10, 2002 5:22 PM
To: [EMAIL PROTECTED]
Subject: Re: regarding JSDK3


If you are talking about servlet 2.3, get it with the Tomcat 4.1 d/l at
Jakarta.  But I don't think this is going to solve your problem.  Post the
stack trace.

Mark

-----Original Message-----
From: Avinash Pedgaonker , SA, NIC [mailto:avp@;DGFTMUM.BOM.NIC.IN]
Sent: Thursday, October 10, 2002 7:35 AM

can any body give me information about from where can i download JSDK3 .
java servlet devlopment kit3.0 ver.
i tried to check on java.sun.com but didn't get it. Is this is combined with
any other download?
also
i am facing problem when i import javax.sql.*; in my servlet programe. it is
giving error that can not resolve sysbol.
pl. help me  regarding why i ma getting this error.and how can i rectify it
( currently i ma using jdk1.3 with jsdk2.1)

thanks in advance.

avinash

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to