Hi all i tried this code and the control os coming to initMyList() but not going inside getName().. Inside the jsp i am accessing the element by friendName[1] and i get a aeeayIndexoutofBondException.
...Pls help.. public class myTestForm extends DynaActionForm { public void reset(ActionMapping mapping, HttpServletRequest request) { List nameList = new ArrayList(); initMyList(nameList); set("friendName", nameList); } private void initMyList(List nameList) { Factory factory = new Factory() { public Object create() { return getName(); } }; nameList = ListUtils.lazyList(new ArrayList(), factory); } public Object getName() { String ma = "mynamehere"; return ma; } } thanks in advance manoj --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]