aspose file tools*
The moose likes JSP and the fly likes JSP login: username and password getting default values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP login: username and password getting default values" Watch "JSP login: username and password getting default values" New topic
Author

JSP login: username and password getting default values

Divyya Joshi
Ranch Hand

Joined: Jul 15, 2010
Posts: 102
Hello friends ,
I prepared a login page using JSP which should accept username and password each time user logins but the following code accepts username and password only one (in beginning) and the other time i execute the code it displays the value i entered earlier.
Here's the code
Piyush Joshi
Ranch Hand

Joined: Jun 10, 2011
Posts: 207

Divyya Joshi wrote: and the other time i execute the code it displays the value i entered earlier.

Which page are you talking about here?
Is it the page after you submit the form or the same page containing the form?
And how you are processing the form parameters in "first" Servlet?


Piyush
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 265
Dear Divya

When you enter the username and password for the first time in JSP Page thru a browser and press the login button, the browser will automatically ask to save the username and password in its cookies.

But my question, if you are doing a system which has the username and password saved in the home page, what is the use of putting the password security to the system?

Best Regards

Aravind Prasad
Divyya Joshi
Ranch Hand

Joined: Jul 15, 2010
Posts: 102
Piyush and Aravind Thanks a lot for your reply.
Aravind , You mean that i should apply smthing for "remember password ". Can you please explain it to me that how can i do it.
Thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP login: username and password getting default values