我在显示标记中使用了复选框,但我想将其中一个列数据作为复选框值传递,但我无法检索复选框值,它返回null
。
这是我的代码:
<input type="checkbox" name="allbox" onclick="checkAll(this.form)"/>
<form name="editForm" action="WorkListResults.jsp">
<input type="submit" name="method" value="Delete" class="button" />
<br /><br />
<display:table name="test" uid="test" class="list">
<display:column style="width: 5%" title="${checkAll}">
<input type="checkbox" name="id" style="margin: 0 0 0 4px" onclick="checkbox(this)" value="${id.rowNum}" />
<c:if test="${param.WORKITEMID == test.WORKITEMID and param.method != 'Save'}" checked="checked"</c:if>
</display:column>
<display:column title="First Name">
</display:column>
<html:hidden property="WORKITEMID" value='<%=request.getParameter("WORKITEMID")%>'/>
<display:column class="WORKITEMID" property="WORKITEMID" paramId="WORKITEMID" paramProperty="WORKITEMID"
title="WORKITEMID" sortable="true" headerClass="sortable" maxLength="50" />
</display:table>
</form>