This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I get username and password in a form.I use a servlet to vaidate those parameters. The strange thing is.. Even though the password entered and the one in database seem to be same( i verified this by printing out)....the code fails to match. The following line always returns false. (password is the one entered in the form and opassword is the one retrived from database.) I use mysql database.What am i missing here? Thanks, vinu.