日期:2014-05-17  浏览次数:20860 次

<html:checkbox>标签使用时要重写reset方法
<html:checkbox property="autoLogon"></html:checkbox>两星期自动登录

Form:
boolean autoLogon;
public boolean isAutoLogon() {
return autoLogon;
}

public void setAutoLogon(boolean autoLogon) {
this.autoLogon = autoLogon;
}
@Override
public void reset(ActionMapping mapping, HttpServletRequest request) {
autoLogon=false;
super.reset(mapping, request);
}