Help with <c:forEach> Tag (it is driving me insane)
I keep gettingthis error (Don't know how to iterate over supplied "items" in <forEach>) whenever i run my jsp page.
JSP Code:
<c:set var="page_action" value="${sessionScope.httpData.find_Fix}" />
<c:set var="LoadedUpdates" value="${sessionScope.hotFix.fixDetails}" />
<c:if test="${page_action != null}" >
<div class="hot-fix">
<table>
<c:forEach items="${LoadedUpdates}" var="updates" varStatus="status">
<tr>
<td> ${status.count} </td><td><c:out value="${updates}" /></td>
</tr>
</c:forEach>
</table>
</div>
</c:if>
JAVA Code (Backend Bean):
import com.sun.java.util.collections.ArrayList;
publicclass HotFixLoader{
ArrayList fixdetails =new ArrayList();
public HotFixLoader(){
for (int i = 0; i < 10; i++){
fixdetails.add("<a href=\"#\">xxxxxx</a>, xx/xx/xxxx, xyxyxyxyxy");
}
}
public ArrayList getFixDetails(){
return fixdetails;
}
}[code]
[/code]

