This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Issue of Setting object variables in loop Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply 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: 19

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
 
Similar Threads
check boxes retrieving problem
Display table rows using JSTL with different colors based on condition
Complex Table and JSTL
Help required for forEach tag
How to use Break / exist statement here in foreach (JSTL)