hi friends , I am making a servlet to verify username and password from a oracle database.I have a table in oracle named "login1" with just 2 rows 1 is to store username and the other is to store password i am trying login using a html page with 2 text boxes but when i compare the value obtained from the table using(rs.getString(1) and rs.getString(2)) with the values obtained from the textboxes using request.getParameter it is always returning false i am getting the following exception at runtime after i press the submit button
"java.net.SocketException:Connection reset by peer:JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) " and many more lines below can any one pls suggest a remedy Here is the entire code i have written
my login is always showing "please try again" ie Login Unsucessful even if the username and password r write. Amit
[This message has been edited by Amit Roy (edited January 21, 2001).]
Your code looks fine and I assume that your database hase 2 columns and not rows as specified by you. Ensure that you are calling the correct parameter and that is varchar in the RDBMS. Also check for the user-ID and password that u r supplying and if it really exists in the database.