wood burning stoves*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem With Checkbox" Watch "Problem With Checkbox" New topic
Author

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.
Thanks,
subhasish
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

http://struts.apache.org/1.2.9/faqs/newbie.html#checkbox
subhasish nag
Ranch Hand

Joined: Apr 25, 2008
Posts: 101
Thanks David.It's working Now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem With Checkbox