Hi there,
I recently started
java programming, so yes, i'm a greenhorn.
I'm getting java.lang.NullPointerException at doPost() method in my serlvet. Code is posted below. can anyone help me please?
Console says, it is at>
pst = con.prepareStatement("SELECT EMPNAME, EMPID FROM EMPLOYEES WHERE EMPNAME= ? AND EMPID= ?"); (line#65 in the below code.)
I'm using oracle 10g. username, password, host
string, url etc are correct. i can see the values in table.
LoginServlet.java
Console: