Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem while using input type="checkbox"

 
nageshreddy yakkanti
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to use the following code.

<c:forEach var="answer" items="${answers}">
<c:set var="i" value="${i+1}" />
<c:set var="bool2" value="answer.isCorrectAnswer.${i}"
/>

<input type="checkbox" name="<cut
value='${bool2}'/>"
value="${answer.isCorrect}" />
</c:forEach>


i am not able to retrive the boolean value from answer.isCorrect into the checkbox.
i am getting the value for answer.isCorrect i have checked the same.

how should i proceed so that i can set the value in answer.isCorrect.

Thanks and Regards
Nagesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic