Baran wrote:
> Hi Guys,
>
> This is about implementing reusability in the actions. I am struggling to
> identify the ways how we can share some comming functionality between
> different actions. Lets say I got a list of users i need to use as a
> combobox list at multiple pages. Right now I have to push the code in every
> action I need that list displayed for.
>
> any idea if I can use that list at multiple places without repeating the
> code. I guess we need to have it static, but not sure how we can use a list
> as an static element
it's a matter of reorganizing your Java classes. extract all the
code that's common to all your user-related classes into a class called
UserActionSupport, and then have all those user-related classes extend
from UserActionSupport.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]