JavaScript highlight error

Complains that java variable key is never used

function selectAll(selectAll) {
<%
for (int i = 0; i < keys.size(); i++) {
---> key = (String) keys.get(i);

%>
<%=key%>.checked=markAll.checked;
<%
}
%>
}

Please sign in to leave a comment.