You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sebastian Stein <se...@hpfsc.de> on 2005/12/01 13:50:44 UTC

Re: Why does has no value?

Laurie Harper <la...@holoweb.net> [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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org