File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Problem With Checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem With Checkbox" Watch "Problem With Checkbox" New topic

Problem With Checkbox

subhasish nag
Ranch Hand

Joined: Apr 25, 2008
Posts: 101
Hi Ranchers,
I have a problem with checkbox. It is delclared in a childbean and declared as(String ynROChecked="-1";).
and in jsp as <html:checkbox property="ynROChecked" name="rocodelist" value="1" indexed="true" /></td>.
In jsp multiple rows are getting populated and some of them are preselected.When I am going to update
the details based on selected checkbox even when I am deselectiong one of the presected checkboxes
those are treating as value 1(ie. selected). Please guide me,or provide some code ,so that I can solve this.
David Newton

Joined: Sep 29, 2008
Posts: 12617
subhasish nag
Ranch Hand

Joined: Apr 25, 2008
Posts: 101
Thanks David.It's working Now.
I agree. Here's the link:
subject: Problem With Checkbox
jQuery in Action, 3rd edition