0
從select屬性中提取的值爲null。從html中提取選定值:select
對JSP代碼是..
<nested:select property="role.roleSID">
<logic:iterate name="roleList" id="roleListId">
<html:option
value="<bean:write name='roleListId' property='roleSID'/>">
<bean:write name='roleListId' property='roleName' />
</html:option>
</logic:iterate>
</nested:select>
和行動類的代碼是..
Long roleSID = userForm.getRole().getRoleSID();
列表框正確填充與預期值。但是在獲取選定的值時,返回null。
你能告訴我哪裏出了問題嗎