I have a multi-selection combo in my Struts2 web application. I use the ui-multisection component. When I select and submit values \"1\"
and \"2\"
what should I do for get all value selected ?
You should make a select
tag to accept multiple options. This is done via multiple="true"
in struts select
tag. Then you interceptor stack is incomplete because multiselect interceptor is missing. You should add <interceptor-ref name="multiselect"/>
to your interceptor stack after fileupload
interceptor reference.
Try changing
private List<String> listIdSelected = new ArrayList<String>();
to
private List<Integer> listIdSelected = new ArrayList<Integer>();
since your Getters and Setters are like that.