• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why the value of my bean's property is always null  RSS feed

 
val04
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My login bean has 2 properties namely, id number and password. Why is it that whenever I retrieve the values of the bean's properties using <%= login.getIdno() %> and <%= login.getPword() %>, the value of the idno is able to take the input of the user from the form (when I retrieve and display it on another page) while the value of the pword property of the bean always remains null even if the user entered his password in the form? I tried creating another bean to set and retrieve the value of the password separately and it works fine. But what I want is to use just one bean to set and retrieve both the values of idno and pword. Help!
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"val04",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in again with a new name which meets the requirements.
Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly what code do you use to set the Bean properties?
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!