aspose file tools
The moose likes JSF and the fly likes Issue of Setting object variables in loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Issue of Setting object variables in loop" Watch "Issue of Setting object variables in loop" New topic
Author

Issue of Setting object variables in loop

Pratik Parekh
Greenhorn

Joined: Jun 09, 2011
Posts: 21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue of Setting object variables in loop