in jspCode:@Entity @Table(name="Employee") public class Caste implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "dept_id") private Integer deptId; @Column(name = "emp_ids") private String empIds; }
Code:<form:select multiple="true" path="empIds"> <form:options items="${empisOptionList}" itemValue="empId" itemLabel="empName"/> <form:select>
in the above code empIds are stored as comma separated ids selected by multiple select . but when i select one value
it show one value selected after saving the domain object but when more than 1 value i.e. comma separated values are save it doesn't show these value selected. and when i again update the table it save null.
Please help.
let me know how i can show more than one value selected in the multiple select when my path variable contains comma separated values e.g.2,3,4.
Thank you in advance!!!


Reply With Quote