|
I have
been struggling with this problem for a while.
I used
the way Jeff recommended and made the application working, however, because I am
not using the struts taglib displaying the collection data, there is no sense to
put that collection in the form. So I do validation and populating
the session data in the action. I don't like that. I am pretty much
sure there should be a way to use nested form in struts. So that I can use
something like following to display the contributors:
<logic:iterate id="contributors" name="plan"
property="contributors">
<td><html:text property="<%= \"contributors[\" + i\"].percentage\"
%>"/></td> <td>
</logic:iterate>
I
tried couple of ways. No one works so far.
One of
the approaches I tried is to have the a PlanForm and a
ContributorForm. And one of the properties/fields in PlanForm is
ContributorForm[]. I think it is a way to do it. But I don't know
how.
Can
someone point me to some solution. I really
appreciate.
Joyce
|
Title: Question on the ActionForm design for dynamic data?
- Question on the ActionForm design for dynamic data? Joyce Tang
- Re: Question on the ActionForm design for dynamic data... Jeff Trent
- Re: Question on the ActionForm design for dynamic ... Ellen Lockhart
- Re[2]: Question on the ActionForm design for d... Oleg V Alexeev
- Re: Question on the ActionForm design for dynamic data... Jeff Trent
- RE: Question on the ActionForm design for dynamic data... Joyce Tang
- Re: Question on the ActionForm design for dynamic data... Joyce Tang
- Re: Question on the ActionForm design for dynamic data... Jeff Trent

