On Mon, Apr 13, 2009 at 8:47 AM, Baran <[email protected]> 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. > > Any help would be great! > > Thanks > Baran
The easiest way is to use the action tag to call the action to populate the combo tag. Next time, please ask the questions on the Struts user list, he dev list is for the discussion of the development of the framework itself, Thanks, Phil > -- > View this message in context: > http://www.nabble.com/Struts-reusable-Combobox%3A-Static--tp23018601p23018601.html > Sent from the Struts - Dev mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- "We cannot change the cards we are dealt, just how we play the hand." - Randy Pausch --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
