about logic:iterate tag in struts
Hi all,
Please give me the explanation for the following
I have CompEmployees class and Employee class.
CompEmployees.java as follows
class CompEmoloyees{
ArrayListtotalEmps;
public ArrayList getTotalEmps() {
return totalEmps;
}
public ArrayList setTotalEmps(ArrayList totalEmps) {
this.otalEmps = totalEmps;
}
}
Employee.java
class Employee{
int empNo;
String empName;
setters and getters for empNo,empName;
}
My program
Here i have 100 employees of ArrayList named elist;
CompEmployees compEmployees = new CompEmployees();
compEmployees.setTotalEmps(elist);
session.setAttribute("total",compEmployees);
Please tell me how can we print the 100 employees in the browser by using logic iterate tag in the Jsp

