There is no way I could find to populate the editUserForm bean prior to
it being called from the forwardAction.
Note below in my struts config have a url to viewedituser.do which
invokes the action below. This action needs to setup to display the
form for the user to edit values. How do I get the values into the
action form editUserForm?
<action path="/viewedituser"
parameter="/edituser.jsp"
type="org.apache.struts.actions.ForwardAction"
scope="request"
name="editUserForm"
validate="false" >
</action>
After the form is display with the current data to be edited it goes
into this action when the user clicks submit to save the data or cancel
to abort:
<!-- the following handles the action editing of a user record -->
<action path="/edituser"
type="myprogram.actions.EditUserAction"
name="editUserForm"
scope="request"
validate="true"
input="/edituser.jsp" >
<forward name="success" path="/mainpage.do"/>
<forward name="failure" path="/edituser.jsp"/>
<forward name="cancel" path="/mainpage.do"/>
</action>
So my question is still where am I or how am I supposed to get the data
into the editUserForm so it can be displayed for editing in the first
action? None of this is hard if the page is always coming up blank for
say an add....but prefilling it where I am struggling.
Thanks again for any insight-I do not want to start
down a road that is wrong with the struts way,
Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]