You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rick Reumann <ma...@reumann.net> on 2003/01/06 17:05:36 UTC

Re[2]: Repopulating a form after an error in Validate


On Monday, January 6, 2003, 10:46:10 AM, Samir wrote:

SS> Ok, here are the relevant pieces of information

SS>         <!-- Step 1 Action, this takes you to form to edit
-->>
SS>         <action    path="/gotoStep1"
SS>                type="com.fdl.quoteweb.GotoStep1Action"
SS>                scope="request"
SS>                validate="true"
SS>                input="/quoteweb/welcome.jsp">
SS>            <forward name="success"
SS> path="/quoteweb/step1.jsp"/>
SS>            <forward name="failure"
SS> path="/quoteweb/welcome.jsp"/>
SS>         </action>       

That's the problem (I believe) above. I don't see you tying a bean to
this action. You need to tie a form bean to this action. Set up a form
bean (see Struts example struts config) and then whatever you set up
the name for this form bean you would add it to your action

SS>         <action    path="/gotoStep1"
SS>                type="com.fdl.quoteweb.GotoStep1Action"
SS>                scope="request"
SS>                validate="true"
                   name="whatever"


-- 

Rick
mailto:maillist@reumann.net


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>