Here's my problem;

A user has several accounts, represented by AccountBean objects, all
having a unique accountId. 

Now, i have a form where the user can select one of his accounts to edit
through a radio button selection. For the associated ActionForm, i see
two options to represent the selected account;

1) on my ActionForm;  a property "int selectedAccountId"
2) on my ActionForm;  a property "AccountBean selectedAccount" 

The first option seems good because it preserves the philosophy that an
ActionForm represents the user's input..

The second is nice because the edit-Action, associated with the form,
can immediately extract the selectedAccount from the ActionForm, whereas
using the first approach, a database call is needed to retrieve the
selected account again by the account's id.

Which option would you prefer, and especially why? Thanks for your time



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

Reply via email to