On Tue, 20 Mar 2001, Frank Ling wrote:

> Hi, There:
> 
> I have some question regarding access the actionform, I have two Actions, one is 
>"edit" and one is "save", they both share the same form just like struts-example, 
>when I do the edit, the form is access fun, but when I do the save, the ActionForm is 
>not null, but content in form is null, I am really no sure is the scope problem or 
>something else.
> 

Make sure that you've declared your dependence on the form bean in *both*
entries in struts-config.xml (using the same bean name and scope), as the
example does:

        <action path="/editRegistration"
         ...
                name="registrationForm"
               scope="request"
         ...
        />

        <action path="/saveRegistration"
         ...
                name="registrationForm"
               scope="request"
         ...
        />

> If anybody have similar problem before, please give some help.
> 
> Thanks in advance.
> 
> Regards
> 
> Frank Ling
> 

Craig


Reply via email to