当前位置: 代码迷 >> HTML/CSS >> <html:checkbox>标签施用时要重写reset方法
  详细解决方案

<html:checkbox>标签施用时要重写reset方法

热度:158   发布时间:2012-11-16 14:12:15.0
<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);
}
  相关解决方案