• 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
Posts: 65679
129
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?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!