permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
wood burning stoves
subject: Problem With Checkbox
Similar Threads
JSP values (checkbox) - True or On
problem with checkbox event in jsp page
Checking Checkbox values in indexed form
maintain checkbox status while doing pagination
How to set check/unckeck Checkbox using database value