• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem while using input type="checkbox"

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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="<c:out
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
 
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic