刚刚遇到这个问题:Property 'typeId' not found on type java.lang.String
原因是我的typeId字段是int类型,我的代码如下:
<SELECT class=form style="WIDTH: 85px" name=type>
                       <OPTION value="" selected></OPTION>
                       <c:forEach var="type" items="typeList.allType">
                       <OPTION value="${type.typeId}">${type.typeName}</OPTION>
                      </c:forEach>
                      </SELECT>

怎样将其转换为String 类型呢?我是个新手。请各位帮忙!谢谢~!