Hi Vijay,
Maybe this sample code will help....
Remember to provide the directory path as the init argument for this servlet (in servlet.properties or its equivalent)
I had been debugging this code...so you might find a couple of unused variables and some roundabout method of reading from the file, if someone else can improve on this code...I would be most appreciative :)
The members.txt file currently has the following syntax
login_id password
myname mypassword
yourname yourpassword
Note: The tab spacing is just for your clarity. It is not handled in the code. Also the HTML page will require one hidden field with the name "login" passing the name of the file (extn. is added by the code so take care)
************************************************************************************************
<<verify.java>>
****************************************************************************************************
Thanks k Regards
Ravi Kumar Gopalankutty
Cognizant Technology Solutions,
Ph: 044-2354281 Extn:4423
e-mail: [EMAIL PROTECTED]
_______________________________________________________________
verify.java