0
我有代碼:顯示標籤查詢
<display:table name="sessionScope.allUserslist" id="userList" export="false" pagesize="1">
<display:column title="Select" style="width: 90px;">
<input type="checkbox" name="optionSelected" value="<c:out value='${userList.loginName}'/>"/>
</display:column>
<display:column property="loginName" sortable="false" title="UserName" paramId="loginName"
style="width: 150px; text-align:center" href="./editUser.do?method=editUser"/>
<display:column property="role" sortable="false" title="UserRole" paramId="role"
style="width: 150px; text-align:center"/>
</display:table>
在登錄名的點擊,我移動到一個新的頁面,在這裏我需要得到所有的用戶,我剛剛起步的名字不是角色,點擊鏈接我打電話的方法,我嘗試從表格中讀取數據時使用的方法
User u=(User)form;
u.getRole();
但它是空的。我哪裏錯了?