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

bean value gives null

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my jsp


this is my jsp which get the bean value



but when i run this it gives "name is null "
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You set the value with an empty parameter in the first JSP, you never set it to anything with a value.
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WHICH LINE ARE YOU REFERING TO?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please avoid posting in all uppercase -- read this for more information.
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i chang my jsp as follow
first jsp


secone jsp


but when i send the parameters for bean first time
name =aruna
address = srilanka
age=23
then it shows name is aruna

it is ok
but when i send the second request with another name it shows older name?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic