我在Spring MVC中使用Spring form capabilities.When创建web应用程序,我提交jsp表单,我从控制器上的多个选择框中获得字符串数组形式的数据,然后存储在database.When用户编辑记录中,如何在多个选择框中显示所选的选项项。Map mp = new HashMap();
mp.put("111", "test1
我的想法是发布到一个URL (有点像rest服务),它将接收两个参数(id和类型),如下所示:http://localhost/thing/save?id=objectReceivedFromSpringAttributes.id&type=selectedOption" 此selectedOption必须是从下拉列表中选择的选项: <form id