In my
struts page, I am using logic:iterate to cycle through a list of objects in an ArrayList to display my data. Several of the fields can be changed by the user.
I'm trying to set an onchange event on the control (html:radio) and have the associated javascript set a flag in the appropriate object in the array list. I've tried many ways of formatting the javascript and can't get it to register.
My current line is:
document.ManageEntryPointForm.list[recNum].changeFlag.value="true";
where ManageEntryPointForm is the name of the form, list is the alias for the array list as defined in the logic:iterate, recNum is the index number from the iterate passed into the javascript as a parameter, and changeFlag is the attribute in the object from the ArrayList.
Can anyone tell me what I am doing wrong?
Thanks,
Joe