Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Default name in JSP Input field

 
Ranch Hand
Posts: 159
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: 159
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more information, I'm callig my JSP login from Netbeans.
 
Sheriff
Posts: 67399
173
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: 159
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
Sheriff
Posts: 67399
173
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 was born with webbed fish toes. This tiny ad is my only friend:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic