struts select tag with values of a array list
问题 I am developing a simple struts application. In my JSP I have a dropdown list box (using s:select tag). I need to fill the values with a arraylist values in the action class. How can I do that? what changes needed in the structs.xml file for complete this? JSP: <s:select name="department" label="" list="departmentlist" headerKey="-1" headerValue="Select Department"> Action class: private List<String> departmentlist = new ArrayList<String>(); public String xyz() { departmentlist.add("aaa");