Java Database Login

Posted 14 September 2009 - 09:19 AM

I am having a problem with a java database login code. The essence of this code is for one to be able to use it to login into an application which I am developing. Now the code does not report any errors. I try to use it to login, I type in the incorrect username and password, it does not login (good), but when I try to use the correct username and password, it still would not login(bad). The database retrieves the correct information, but I do not know where the problem is coming from.