I'm using a bog-standard release of 1.1.. And I'm using c:forEach rather than logic with plain html tags for form elements.

Works just fine.

On 29 Mar 2004, at 19:35, Hubert Rabago wrote:

In that case, can I say "Oops!"?
If you figure this out, can you share it on the Struts user list? Arron
Bates hasn't yet.
http://www.mail-archive.com/struts-dev%40jakarta.apache.org/ msg22262.html
Yours is specific to your situation, of course, so you may find a hack that
works.


--- Jarnot Voytek Contr AU/SC <[EMAIL PROTECTED]> wrote:
I appreciate your replies, but let me quote myself from my original
message:


I'd rather stick with JSTL and html-el rather than the nested
taglib.

If possible, I'd like to accomplish this using jstl for the loops and
html-el for the input fields. If not, I will be forced to use the nested
taglib, which I have working in the interim.


-----Original Message-----
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 11:20 AM
To: Struts Users Mailing List
Subject: RE: nesting c:forEach loops


Try looking at Struts' <nested:text> tags. Tutorials are on http://www.keyboardmonkey.com.

--- Jarnot Voytek Contr AU/SC <[EMAIL PROTECTED]> wrote:
I'm not using a dynaActionForm, my problem lies with the html that's
rendered...  Displaying the form works fine, but I don't
see how struts
will
repopulate my nested beans.

-----Original Message-----
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 11:14 AM
To: Struts Users Mailing List
Subject: Re: nesting c:forEach loops


If you're using dynaActionForm you need to extract the
map from the
dynaForm.

${applicationForm.map.schools}

other than that looks like it should work just fine as it is.


On 29 Mar 2004, at 19:02, Jarnot Voytek Contr AU/SC wrote:


Is it possible to nest forEach loops and have the
html:text input
fields
work correctly?

My JSP code:
<c:forEach items="${applicationForm.schools}" var="school">
  <tr>
    <td>
      <html:text indexed="true" name="school" property="name"/>
    </td>
  </tr>
  <c:forEach items="${school.courses}" var="course">
    <tr>
      <td>
        <html:text indexed="true" name="course"
property="courseTitle"/>
      </td>
    </tr>
  </c:forEach>
</c:forEach>

Within the second loop, input field names are rendered as
course[0].courseTitle rather than the required
school[0].course[0].courseTitle.  Any ideas on nesting
these loops?
I'd
rather stick with JSTL and html-el rather than the
nested taglib.


--
Voytek Jarnot
Quantum materiae materietur marmota monax si marmota
monax materiam
possit
materiari?




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to