Checking with DB

2002-02-22 Thread Uma Maheswar
Hi, Please help me with this. Please see the code below. It doesn't work, if I give the correct id and password.But it works if I say (!rs.next()). The same type of programme worked for me in case of other tables. Could any one pls help me solve this problem. String id =

Re: Checking with DB

2002-02-22 Thread David Slater
Not sure how this is Tomcat related other than it looks like you are working on a servlet, but what the hell: Of course !rs.next() would work, as in return 'you are lucky', cause I'll bet it's null/empty. Try System.out.println'ing the request params after getting them into the Strings, and