• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issue of Setting object variables in loop

 
Greenhorn
Posts: 21
Netbeans IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone.
I have following code
<c:forEach var="locn" items="#{com.locationQuotes}" varStatus="rowCounter">
<c:if test="${com.commodityCode == pvo.metal}">
<c:if test="${locn.location == pvo.location}">
<c:set var="#{locn.sp}" value="#{pvo.sp}"/>
<c:set var="#{locn.csp}" value="#{pvo.csp}"/>
<c:set var="#{locn.ic}" value="#{pvo.ic}"/>
<td width="32%" id ="#{pvo.equoteId}" class="ewTD" name="td-${locn.subscriptionCd}-last_price">#{locn.pfTick}</td>
<c:set var="flag" value = "Y" />
</c:if>
</c:if>
</c:forEach>
So while executing
<c:set var="#{locn.sp}" value="#{pvo.sp}"/>
<c:set var="#{locn.csp}" value="#{pvo.csp}"/>
<c:set var="#{locn.ic}" value="#{pvo.ic}"/>
values are not getting set. Please help on this also if any alternative is there then please reply for that.
 
They weren't very bright, but they were very, very big. Ad contrast:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic