Ok:
I have seen much dialog on this topic I originally asked. I read the docs...

"This method is *not* the appropriate place to initialize form value
for an "update" type page (this should be done in a setup Action). You
mainly need to worry about setting checkbox values to false; most of
the time you can leave this method unimplemented."

You say the ActionForm is "just a class" with "a simple lifecycle".
That "lifecycle" is more than just a sequence of method invocations,
but also the expected behavior of each of those invocations.  The
documentation ("lifecycle specification") clearly defines that the
only behavior that is expected during the invocation of the reset()
method is to set checkbox values to false.

So I have a setup action.  How do I in this setup action setup my ActionForm 
values so when I forward control to the form they are there and present for 
display.  This form is being used to allow updating data and I want to 
prepopulate the fields for the user.

My form is an editUserForm that has an editUser action as well.  Should I in my 
editUser action call the setters of the editUserForm and set the values?  Then 
just call the jsp page that will reference these through the editUserForm?  I 
agree using reset is not proper given the documentation-just not sure how I 
should do this...

The editUserForm is in request scope as well not in session scope....

Thanks,
Tony



Reply via email to