[standard] nested forEach tags?
Can you nest c:forEach tags? I can't find an example of it, and it's not working for me. c:forEach items=${itemList} var=item hr c:out value=${item.id}/. c:out value=${item.text}/br c:forEach items=${item.options} var=option / c:out value=${option.text}/ /c:forEach c:out value=${item.answer}/br /c:forEach The first /c:forEach tag ends the loop. Should this be working? Does anyone see anything wrong with this? -- Wendy in Chandler, AZ
Re: [standard] nested forEach tags?
On Sat, 23 Nov 2002, Wendy Smoak wrote: Can you nest c:forEach tags? I can't find an example of it, and it's not working for me. Sure. c:forEach items=${itemList} var=item hr c:out value=${item.id}/. c:out value=${item.text}/br c:forEach items=${item.options} var=option / c:out value=${option.text}/ /c:forEach c:out value=${item.answer}/br /c:forEach The first /c:forEach tag ends the loop. Should this be working? Does anyone see anything wrong with this? It looks right to me. Are you sure you're using our Standard Taglib implementation? This could be a bug with other partial implementations. Shawn -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [standard] nested forEach tags?
Shawn wrote: It looks right to me. Are you sure you're using our Standard Taglib implementation? This could be a bug with other partial implementations. I think I am... I have the standard.jar, jstl.jar, and c.tld from jakarta-taglibs - standard-1.0.2 directory in the appropriate places (WEB-INF/lib, WEB-INF/tld) of my webapp. Do you know if Tomcat 4.1.12 comes with an implementation I might be accidentally be using instead? When I use that code I posted... I actually get the second/c:forEach tag in the html output. Strange! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [standard] nested forEach tags?
When I use that code I posted... I actually get the second/c:forEach tag in the html output. Strange! Never mind... I still can't see it, but there must have been a typo. I deleted the nested c:forEach tag and re-typed it... and it works fine. Thank you for the quick answer, and on a Saturday, no less! -- Wendy in Chandler, AZ
Re: [standard] nested forEach tags?
Wendy == Wendy Smoak [EMAIL PROTECTED] writes: Wendy Can you nest c:forEach tags? I can't find an example of it, and it's not Wendy working for me. Wendy c:forEach items=${itemList} var=item Wendy hr Wendy c:out value=${item.id}/. c:out value=${item.text}/br Wendy c:forEach items=${item.options} var=option / Wendy c:out value=${option.text}/ Wendy /c:forEach Wendy c:out value=${item.answer}/br Wendy /c:forEach Wendy The first /c:forEach tag ends the loop. Wendy Should this be working? Does anyone see anything wrong with this? The typo you refer to is in the first c:forEach. The line ends with /. That's why the second /c:forEach ended up in the output. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]