From: "Bouvet Konsulent" <[EMAIL PROTECTED]>
Absolutely non-working code looks something like:
<logic:iterate id="geSectionComponent" name="initialReportForm"
property="geSectionComponents">
<c:set var="comp" value="????"/>
<jsp:useBean id="comp"
type="com.acme.ge.generated.GeSectionComponent" />
<% ????.getPowerLimits(comp); %>
</logic:iterate>
What version of the Servlet spec are you working with? The example below is
for Servlet 2.3 / JSTL 1.0 / Struts-EL (though it doesn't use Struts tags.)
[untested]
<c:forEach items="${initialReportForm.sectionComponents}" var="entry" >
<c:out value="${entry.key}"/>
<c:out value="${entry.value}"/>
<!-- Looks like 'entry.value' is of type GeSectionComponent -->
<c:out value="${entry.value.powerLimits}"/>
</c:forEach>
If you're going to do a lot of work with each component, you might want to
use <c:set> within the loop:
<c:set var="comp" value="${entry.value}"/>
<c:out value="${comp.powerLimits}"/>
It might not be exactly right, but it should get you headed in the right
direction.
Here's a good article on JSTL:
http://www.phptr.com/articles/article.asp?p=30946
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]