letsbedecent
asked on
CheckBoxes and Struts
Hello,
I have to display number of records on a page and each record will have a checkbox with it. I dont know how many records will be displayed, because that depends on search criteria.
So, i have
<input type="checkbox" name="boxes" value <%=rowId%> >
Now, if i have a corresponding
private String[] boxes;
in the ActionForm, will this array get populated with the selected rowId values ??
Thank You.
I have to display number of records on a page and each record will have a checkbox with it. I dont know how many records will be displayed, because that depends on search criteria.
So, i have
<input type="checkbox" name="boxes" value <%=rowId%> >
Now, if i have a corresponding
private String[] boxes;
in the ActionForm, will this array get populated with the selected rowId values ??
Thank You.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
CheckBox is used to modify the records that are displayed.
For example.
empNo empName empSalary CheckBoxColumn are the columns of the table., now for each row, if the user selects the
checkbox that means the employee is on holiday and his salary calculations will be effected. But, i have to first get the empNo's of those employees whose corresponding checkBoxes are checked.