Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP login: username and password getting default values

 
Divyya Joshi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 207
Eclipse IDE Firefox Browser jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic