Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue of Setting object variables in loop

 
Pratik Parekh
Greenhorn
Posts: 21
Eclipse IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic