struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Evans <>
Subject ognl and multdimensional lists
Date Wed, 13 Oct 2010 17:24:40 GMT

I've got an action  with this property:

private List<List<CellCost>> cellCosts;

public void setCellCosts(List<List<CellCost>> l) {
   this.cellCosts = l;

public List<List<CellCost>> getCellCosts() {
   return this.cellCosts;

The outer list is a list of locations, each of which has a list of
cellCosts. These are dynamically sized.

The jsp has this in two nested jstl forEach loops:
<input name="cellCosts[${locationStatus.index}][${cellCostStatus.index}].quota"
type="text" value="${cellCost.quota}" />

which renders to (as an example):
<input name="cellCosts[0][4].quota" type="text" value="10" />

Ognl doesn't seem to be populating the cellCosts list.
Any suggestions?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message