struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carr" <>
Subject [S2] Populate a List property?
Date Thu, 24 Apr 2008 22:06:14 GMT
Hi All,

I want to be able to submit a form that can add array elements to one
of my action properties. I have something like this:

public class SomeAction{
     private FooBar foo;
     // getters and setters, execute, etc. here


public class FooBar{
    private List<Bar> bars;
    // getters and setters

how can I submit elements in a way that adds new elements to the list
in FooBar? I can set FooBar fine, but trip up on the array portion. I
need to know how to do this without using the s2 taglib, as I am
sending a json request.


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

View raw message