klute wrote the following on 7/7/2005 12:56 PM:

  UserActionForm userForm = (UserActionForm)form;
  //userID is set in this form when the user
clicked on the link


So, even though the jsp containing the list of users
and the links to edit each of them doesnot contain a
form tag, your userForm will still be created and
assigned a userID? I guess that is the case due to the
fact that the UserForm is defined for the
DispatchUserAction and has a request scope so the form
will always be created when the action is invoked.

More specifically it's due to the fact that the URL path for the link is defined in the struts-config action mapping, so yes the ActionForm will be instantiated by Struts. This is a good point to bring up because many think you 'have' to use a html form in order to get an ActionForm populated, but as you have noticed, this is NOT the case. A URL will work just as well. Good observation.

--
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to