struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carr" <james.r.c...@gmail.com>
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
}

with

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.

Thanks,
James

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message