JSTL Passing ArrayList of ArrayLists
800409Sep 30 2004 — edited Oct 4 2004I posted a question on this earlier and was helped out... now I'm having a problem with passing a value to a javascript function storeValues.
Basically I'm not using the c:out correctly but I don't know what else to use.... I want the entire arrayList passed to the function.. not basically the toString method of it. What should I use instead of c:out???
Also strangely enough I know the tableData ArrayList is populated but the If statement does not work.. to make this do anything I have to remove the c:if.
<c:if test="${tableData != null}">
..........<c:forEach var="recordList" items="${sessionScope.CCALForm.tableData}">
....................<tr id="tableRow" onmouseover="bgColor='#9bcdff'"
..............................onclick="storeValues(this,'<c:out value="${recordList}"/>')" -----THIS FUNCTION
..............................onmouseout="changeColor(this)">
..............................<c:forEach var="record" items="${recordList}">
........................................<td><c:out value="${record.value}"/></td>
..............................</c:forEach>
....................</tr>
..........</c:forEach>
</c:if>