aspose file tools*
The moose likes JSP and the fly likes bean value gives null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "bean value gives null" Watch "bean value gives null" New topic
Author

bean value gives null

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Sep 10, 2009
Posts: 237
WHICH LINE ARE YOU REFERING TO?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

Please avoid posting in all uppercase -- read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: bean value gives null