Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL Passing ArrayList of ArrayLists

800409Sep 30 2004 — edited Oct 4 2004
I 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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 1 2004
Added on Sep 30 2004
3 comments
189 views