1

我有两个自定义对象的映射作为我的模型对象中的属性,我通过直接将它绑定到路径和项目属性中来在 JSP 中显示它<form:select>

<form:select id="selectedpbrtypes" multiple="true" items="${prescriber.selectedpbrtypes}" path="selectedpbrtypes"/> 

提交时,我得到一个逗号分隔的所有选定值的字符串<form:options>。现在我想访问模型对象的单独属性的问题

private Map<Integer, PrescriberTypeModel> availablePbrTypes

并使用 availablePbrTypes 在属性编辑器的 setAsText 方法中根据逗号分隔字符串中的值获取所有 PrescriberTypeModel 并创建一个 Map。请帮忙,因为我不知道如何在属性编辑器中访问其他对象。

4

0 回答 0