userAddressMap
的I Impex数据->可以,并且值为:[B@785db42b
我想获取(key, value)
的值userAddressMap
我的Item.xml
和jsp
文件如下:(无效)
<maptypes>
<maptype code="addressMap" argumenttype="java.lang.String"
returntype="java.lang.String" autocreate="true" generate="false" />
</maptypes>
<itemtype generate="true" code="Band" autocreate="true">
<deployment table="Bands" typecode="30268" />
<attributes>
<attribute qualifier="code" type="java.lang.String">
<description>short unique code of band</description>
<persistence type="property" />
</attribute>
<attribute qualifier="name" type="java.lang.String">
<description>name of band</description>
<persistence type="property" />
</attribute>
<attribute qualifier="history" type="java.lang.String">
<description>history of band</description>
<persistence type="property" />
</attribute>
<attribute qualifier="albumSales" type="java.lang.Long">
<description>official global album sales</description>
<persistence type="property" />
</attribute>
<attribute qualifier="userAddressMap" type="addressMap">
<modifiers unique="false" read="false" />
<persistence type="property" />
</attribute>
</attributes>
</itemtype>
和我的jsp文件:
<c:forEach var="userAddressMap" items="${band.userAddressMap}">
<tr>
<td>${userAddressMap.key}</td>
<td><input TYPE="text" NAME="${userAddressMap.key}" VALUE="${userAddressMap.value}" SIZE="100"></td>
</tr>
</c:forEach>