struts2----checkbox
jsp:
<s:checkbox id="emailconfigForm.serverSSLEnabled" name="emailconfigForm.serverSSLEnabled" cssStyle="width:20px;"></s:checkbox><s:checkbox id="emailconfigForm.serverAuthEnabled" name="emailconfigForm.serverAuthEnabled" cssStyle="width:20px;"></s:checkbox>?
action:
this.emailconfigForm.setServerAuthEnabled("true");this.emailconfigForm.setServerSSLEnabled("false");
?
那么当请求这个url时,页面上的checkbox自动做勾选操作。(struts2)