Passing form input values as a List of objects from a JSP page to a Servlet
问题 Here is a simplified (NOT real world) example. Suppose there is a domain model - a class Movie , which has a List of actors. A class Actor has three fields ( name , birthDate , rolesNumber ). The following code is an illustration of this scenario: Movie.java public class Movie { // some fields private List<Actor> actors; // getters and setters } Actor.java public class Actor { private String name; private Date birthDate; private int rolesNumber; // getters and setters } There is also a JSP