aspose file tools
The moose likes JSP and the fly likes problem while using input type= Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "problem while using input type="checkbox"" Watch "problem while using input type="checkbox"" New topic
Author

problem while using input type="checkbox"

nageshreddy yakkanti
Greenhorn

Joined: Jan 02, 2007
Posts: 1
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: problem while using input type="checkbox"
 
Similar Threads
check boxes retrieving problem
How to use array of beans in jsp
How to retain the old values?
c:forEach question
create one checkbox per row for the JSP table