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!

Passing jstl to javascript function

843838Aug 2 2006 — edited Aug 2 2006
I'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}" />)"/>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2006
Added on Aug 2 2006
3 comments
1,570 views