Very cool. I was able to get mine working with:
Action Class :
List<MyBean> beanList;
.....getter/setter
in the jsp:
<s:form action="/myaction"
.....
<s:iterator value="beanList" id="beantList" status="stat" >
<s:hidden name="beanList[%{#stat.index}].beanID" value="%{beanID}" />
<!-- yeah, good ol' LabelValueBeans can still be used , just remember to use
listKey="value" listValue="label" -->
<s:select name = "beanList[%{#stat.index}].beanStatus" list="LVBList"
listKey="value" listValue="label" value="%{beanStatus}"/>
</s:iterator>
...
</s:form>
on submit I access my List of beans with
List mysubmittedList = getBeantList() ;
On 9/18/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Vinny <[EMAIL PROTECTED]> wrote:
> > myBean[0].propertyName for example
> > of values that struts 1.x was able to pick back up
> > in the action. I'm sure there must be a way to do
> > this in S2, right?
>
> The same way, although AFAIK you have to build the
> property name by hand using the iterator's named
> status variable.
>
> d.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
The Street Programmer http://streetprogrammer.com