如何检索在我的 servlet 程序的多选列表中选择的所有值。我正在使用 struts2 框架。我能够创建多选列表,但无法在 java 程序中检索其值。请帮助。
这是我在 jsp 中的选择列表声明
<s:select id = "s4" label="Select the IDS to be bypassed:" name="ids" list=" {'IX','HX','LX','HD','LD','NH','LH','QL','QH','TM','SP','ALL','*'}" headerKey="0" headerValue="Select" property="selectedValues" multiple="true"/>