Link to home
Start Free TrialLog in
Avatar of letsbedecent
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.
ASKER CERTIFIED SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of letsbedecent
letsbedecent

ASKER

The data is obtained from beans stored in the request scope.

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.