This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Default name in JSP Input field

 
Ranch Hand
Posts: 142
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JSP for login to my web project with field name to enter the name of user, pwd to enter password of user, two buttons, button1 to enter and button2 to alter the password when click button2 I call another JSP to alter the password. The problem is that when I execute my login page my page is loaded whith joeuser in field name, I don't know where this name is born.

My environment:
Java
IDE: Netbeans 8.2, Maven
DB:  Mysql

Thanks in advance.
Staff note (Bear Bibeault):

Not a Servlets question, so moved to a more appropriate forum.

 
Cezar Apulchro
Ranch Hand
Posts: 142
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more information, I'm callig my JSP login from Netbeans.
 
Marshal
Posts: 67300
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are not setting a default value in code, the browser is most likely being "helpful" and filling it in for you. I assume that this is a value that you entered in the past as a test?
 
Cezar Apulchro
Ranch Hand
Posts: 142
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I don't have value set in my JSP, my problem is that when I click button2 to alter psw I call a JSP with three fields, field1 the name, field2 new password and field3 to confirm new password and the button to execute the proccess. In the login page I get the name and the password of the user and by getRequestDispatcher I load that information to ALTER page but the page is loaded with default name and password not whith my RequestDispatcher.
Thanks.
 
Bear Bibeault
Marshal
Posts: 67300
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:the browser is most likely being "helpful" and filling it in for you. I assume that this is a value that you entered in the past as a test?

 
I love a good mentalist. And so does this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!