I am able to prepopulate the form by forwarding teh form to an intermediate action class. But after prepopulation, if I try to save the data as it is, without updating, all teh values in the form bean are null (unless I manually set the values). How is it able to populate then.
Please help me in understanding it. Thanks! [ February 17, 2005: Message edited by: sunitha Veda ]
I'd love to help, but I'm afraid I can't make sense of what you are doing. It would be helpful if you could be more specific on what the flow of information is, and at what point the values are null. It would also be helpful to indicate what the scope each of the forms are in. For example:
1. user calls actionA 2. actionA populates FormA 3. ActionA puts FormA in the request 4. JspA reads values in FormA and values are null.
One of the biggest mistakes made by beginners in struts is that they forget to place the form bean in the proper scope object. For example, if the form is scoped to the session, in the Action class, you must include the statement: