public class CCDocumentHeaderBean
{
boolean TransportRequested;
public void setTransportRequested(boolean newTransportRequested) {
TransportRequested = newTransportRequested;
}
public boolean isTransportRequested() {
return TransportRequested;
}
}
CCDocumentHeaderBean lDocHeaderBean = new CCDocumentHeaderBean();
lDocHeaderBean = (CCDocumentHeaderBean)session.getValue("CustomHeaderValue");
<input type="checkbox" name="chkSelectNo"
<c:if test="${lDocHeaderBean.TransportRequested== false}">
checked
</c:if>
onClick = "javascript:onSelectNo();">
在这段代码中,我有 CCDocumentHeaderBean 类,我在页面加载时存储这个 TransportRequest 属性。我想检索复选框中的值