• 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
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Default name in JSP Input field

 
Ranch Hand
Posts: 144
2
  • 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: 144
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more information, I'm callig my JSP login from Netbeans.
 
Marshal
Posts: 67313
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: 144
2
  • 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: 67313
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?

 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!