Hi Vishnu, on the html page you will have a list of checkboxes with the same name "selectedEmployees" and a value of an employee identificator. In the action create settet setSelectedEmloyees(String[] selectedEmployees), then in execute You can access this table of employee identificators. Just as a side note, i don't know what type of is your employee identificator, so i proposed String, but it can also be long.
Best greetings, Pawel Wielgus. 2009/6/20, Vishnu Vyasan Nelliparmbil <vis...@mun.gov.bh>: > Hi Friends, > > I am new to web development and struts. I have a simple question. > > I am using <logic:iterate> tag to iterate through a list of Employees > and display their details. > The list contains the Employee objects. > Now while displaying Employee details in a table, the row is ending with > a check box , so that the user can select employees. The check boxes are > created dynamically since they are inside the iterate tag. > > Now how in Action I know that a specific employee is selected? > > In action form I would get whether the check box is selected or not. But > how can I relate that to employees in list? > > Thanks in Advance > vishnu > > > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org