Re: ognl and multdimensional lists

2010-10-20 Thread Dave Evans
Hello Li, I'm using struts 2. I'm not getting an IndexOutOfBoundsException, instead the list is populated with null values. Dave On Wed, Oct 13, 2010 at 7:20 PM, Li Ying wrote: > Hi Dave: > > What version of Struts are you using? > > A long time ago, i met the similar problem in Struts1. > > I

Re: ognl and multdimensional lists

2010-10-13 Thread Li Ying
Hi Dave: What version of Struts are you using? A long time ago, i met the similar problem in Struts1. I thought the parameter named "cellCosts[0][4].quota" should be translated into java code likes: action.getCellCosts().get(0).get(4).setQuota(value); And the method [get] throws a IndexOutOfB

ognl and multdimensional lists

2010-10-13 Thread Dave Evans
Hello, I've got an action with this property: private List> cellCosts; public void setCellCosts(List> l) { this.cellCosts = l; } public List> getCellCosts() { return this.cellCosts; } The outer list is a list of locations, each of which has a list of cellCosts. These are dynamically siz