Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Symbol cannot be solved

843841Oct 21 2004 — edited Oct 21 2004
hi 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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 18 2004
Added on Oct 21 2004
10 comments
513 views