Rick Reumann wrote the following on 7/7/2005 11:58 AM:
// THE SET UP FOR EDIT
Ok, this is the one you were asking about. Now you have to think about
how you would get here? Typically you'd get to an edit page by clicking
on a user record to say "Hey, I want to edit this guy's user
information" So imagine a case where we have a list of users and
'userID" for each in the list, they click on the link and they'll come
to this method which will get our user and then forward them to a page
to do the editing. The method will look like...
public ActionForward setUpForEdit(ActionMapping mapping, ActionForm
form, HttpServletRequest request, HttpServletResponse response) throws
Exception {
UserActionForm userForm = (UserActionForm)form;
//userID is set in this form when the user clicked on the link
//lets get our real business object of this user, based on ID..
UserVO user = ourBackendDelegate.addUser( userForm.getUserID() );
!!!THE ABOVE SHOULD BE ourBackendDelegate.getUser( userForm.getUserID() );
Thanks Michael for catching that.
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]