Symbol cannot be solved
843841Oct 21 2004 — edited Oct 21 2004hi i have a problem in servlets can any one help me out.i am sending the code to u, when i complie i get a error saying "Symbol cannot be solved".
===============
package com.DBConnection;
import java.sql.*;
import java.io.*;
import javax.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.*;
public class ConnectionAction extends HttpServlet{
public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException{
Connection con=null;
ResultSet rs=null;
Statement stmt = null;
response.setContentType("text/html");
PrintWriter out=response.getWriter();
DBConnection db= new DBConnection();
con=db.getCon();
Statement query=con.createStatement();
String userno = request.getParameter("txtempId");
String pass = request.getParameter("txtpassword");
rs=query.executeQuery("select Emp_no,Password from Login where Emp_no='"+userno+"' and Password='"+pass+"' ");
con.close();
}
}
===============
i have a seperate connnection called DBConnection.java and i am calling the connection to the above file.please suggest a sugggestion to this problem.Both the DBConnection file and the above file are in the same folder called COM.
waiting for ur replies.
Regards
Manish