Laurie Harper <[EMAIL PROTECTED]> [051201 07:43]:
> >             <action path="/EditDoc"
> >                     
> > type="org.contineo.actions.documan.document.EditDocAction">
> >                     <forward name="editdoc"
> >                              path="/pages/editDoc.jsp"
> >                              redirect="false"/>
> >...
> >             <action input="/EditDoc.do"
> >                     name="docForm"
> >                     path="/ChangeDoc"
> >                     
> > type="org.contineo.actions.documan.document.ChangeDocAction"
> >                     validate="false"/>
> >
> >The second step already works, I can access the form content in
> >ChangeDocAction.
> 
> Assuming editDoc.jsp contains an html:form tag which submits to 
> /EditDoc, you don't need any additional configuration to use the form in 
> editDoc.jsp. The html:form tag will automatically create a scripting 
> variable 'docForm'.
> 
> However, to pre-populate the form bean in EditDocAction, you do need the 
> extra configuration: you need to tell Struts to provide the form bean to 
> the action. To do that, just add 'name="docForm"' in the /EditDoc 
> mapping, just as you did for the /ChangeDoc mapping.

Thanks, that was the problem. Now it is working!


Sebastian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to