You should initialize the array list in the Action. Any accesses to the
model should be handled from the Action, so that the view is just handed
static data, ready to display. 

Hard won experience by legions of developers have shown that mixing the
model with the view in a Web application causes untold complications.
See the material about MVC at 

http://husted.com/struts/links.htm#mvc

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

lisa ward wrote:
> 
> Hi,
> 
> I have an ArrayList which I use to populate the options on one of my JSP
> pages.  Where is the best place to initialize this ArrayList?  At the moment
> I am making database calls from within my form bean, so that when the form
> is initialized the values will be present.  Should I be doing this from
> within my Action class?  I guess my question is whether or not there are any
> complications doing it the way I am doing it.
> 
> Thanks alot for your speedy response.
> 
> Lisa
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to