Wednesday, May 21, 2003 07:00 AM
I do it in the "reset" method of the ActionForm subclass (e.g. your "enter details" form). It checks for a "prefill" attribute in the request (e.g. a bean containing the values, of the properties for the existing user). If present, it uses that to prefill the properties in the new form. Otherwise it resets them all to null, as usual.
So, the previous Action (e.g. your "enter username") is responsible, for setting this "prefill" bean (with the properties for an existing user, if entered) at the request scope attribute, before returning the action mapping to forward to the jsp for entering details.