wood burning stoves 2.0*
The moose likes JSF and the fly likes Field set in action method coming null in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Field set in action method coming null in JSP" Watch "Field set in action method coming null in JSP" New topic
Author

Field set in action method coming null in JSP

Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
Hi All,

I have run into this weird problem. I am using sun ri 1.1_01 implementation.
I am having problem getting field values from a bean on the jsp page. From my first page I click on a button and it goes to the action method in the managed bean. In this method I set the values of the fields. before returning the view Id, I print these values and everything is set. but when it goes to the next page, it does not display any values.
I have other action methods, where I am setting the same values and I am able to get those values.
The same method was working in a previous version of ear. I don't know what went wrong and it stopped working.

Here is my code of the method




before the return statement, when I log the values of userRequested, it prints the details, but I don't get this value in my jsp...
Is it JSF life cycle bug?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15956
    
  19

What's the scope of the backing bean?


Customer surveys are for companies who didn't pay proper attention to begin with.
Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
session
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Field set in action method coming null in JSP
 
Similar Threads
pass value from javascript to strutsaction class
Null Pointer in struts
the data in form is not being displayed :
How To Handle Setting Up Pages Being Forwarded To
FormBean - Hidden variable not set