Struts tries to recycle ActionForm beans between requests. Perhaps
Struts
is not creating a new bean for the next request, but recycling the old
one
by calling reset(), and so the nested beans are being set to null.
Michael Mok wrote:
>
> Hi Ted
>
> Since you mentioned about this. I have tried a similar method and I notice
> while the method works, I have to store the form bean in the session scope
> instead of the request scope.
>
> When I try to store the form (with nested beans) in the request scope, when
> the form is submitted to the next action, STRUTS does not automatically
> create the table1 bean nor the table2 bean though it creates the formbean
> fine.
>
> Any comments?