Populate List<String> in struts2 from form data
问题 I feel this should be exceedingly obvious, but so far I've failed to find an answer. I want to have a list of strings (or an array of strings, I really don't care) get populated by form data in Struts2. I've seen several examples of how to do indexed properties with beans, but wrapping a single string inside an object seems fairly silly. So I have something like public class Controller extends ActionSupport { private List<String> strings = new ArrayList<String>(); public Controller() {