You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Johngara <jj...@gmail.com> on 2007/04/25 20:23:01 UTC
List-backed property of a list-backed property
I've been wondering this for a while but is it possible to index an list
inside of a list?
ie.
You can have a 1 layer list-backed property via
public void setFoo(int key, Object value) {
foo.set(key, value);
}
public Object getFoo(int key) {
return foo.get(key);
}
and in your jsp, reference a foo[0], foo[1], etc.
But can you put another List<Object> inside of the Object itself and
reference that in your jsp page at all?
Basically, what I would love to achieve is something like:
<c:forEach var="fooer" items="foo">
<c:forEach var="fooerer" items="${fooer}">
// ad infinitum?
${fooerer[12]}
</c:forEach>
</c:forEach>
any ideas or suggestions?
--
View this message in context: http://www.nabble.com/List-backed-property-of-a-list-backed-property-tf3647218.html#a10186646
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org