Passing jstl to javascript function
843838Aug 2 2006 — edited Aug 2 2006I'm trying to pass jstl to javascript however when I attempt the following I get a syntax error
<c:forEach var="access" items="${dynamicArrayForm.map.access}">
<tr
<td><c:out value="${access.action}"/></td>
<td><html:checkbox property="approve" indexed="true" name="access" onclick="chkApprove(this,this.form, <c:out value='${access.action}' />)"/></td>
</tr>
</c:forEach>
and when I change the bold to double quotes I get Error: Attribute: ${access.action}" is not a valid attribute name
<html:checkbox property="approve" indexed="true" name="access" onclick="chkApprove(this,this.form, <c:out value="${access.action}" />)"/>