1) For Example If we develop spring application with command create
public class EmployeeCommand {
private List employees;
//Setters and Getters
}
public class Employee {
private boolean checked;
//Setters and Getters
}
in JSP
test="${not empty employeeCommand.employees}">
items="${employeeCommand.employees}"
varStatus="loopStatus">
path="employees[${loopStatus.index}].checked"
value="true">
public class EmployeeCommand {
private List
//Setters and Getters
}
public class Employee {
private boolean checked;
//Setters and Getters
}
in JSP
varStatus="loopStatus">
value="true">
Comments