Just a couple of pointers I can offer here..

I am assuming that for the user to be able to edit there
profile, they have been "identified" in some manor, and 
therefore this information can be stored within the session
object. This is where the default information for the form
can be retrieved. Maybe creating/initializing the bean storing 
the profile info used by the form can be done at the login
stage.

I defer the example based details to the more experienced
members of this group :)

> Consider a scenario where there is a user profile.
> When a user clicks on a link to display the profile we
> would get his details and would display them in
> editable input fields  ( text boxes, radio buttons etc
> ). When he edits them and asks to save we save them.
> Suppose I wish to use the same action class for both
> the activities. Suppose I associate a AcitonForm for
> the page. When the user clicks on the link the form
> class is null ( or is it created with its attributes
> null ??? ). In the action class I retrieve the
> elements and populate the ActionForm using setX ( can
> I actually do this ?? ). 


Daniel

Reply via email to