ActionForm的ArrayList和HashSet有和区别
我的ActionForm有个集合属性private Collection orderItems = new ArrayList();在JSP页面构造form input没问题:
<nested:iterate property="orderItems" indexId="index">
<nested:nest property="product"><nested:text property="productId"/></nested:nest>
<nested:text property="quantity"/>
<nested:text property="unitprice"/>
</nested:iterate>
可是为了与Hibernate结合,改为
private Collection items = new HashSet();却报错:
Invalid argument looking up property orderItems[0].product.productId of bean orderForm
不知为什么?