---
title: "关于跟checkbox冲突的问题！！！！！！！！！！"
author: "and4walker"
date: "2006-12-20T23:25:50Z"
tags: ["HTML", "JSP"]
slug: "checkbox"
draft: false
lastmod: "2006-12-20T23:25:50Z"
id: 39867
url: "https://orz.iteye.com/blog/39867"
---

页面JSP代码:

1. \[html:checkbox property="checkboxValue" /]

Formbean:

1. private boolean checkboxValue=false;
2. public boolean isCheckboxValue() {
3. return checkboxValue;
4. }
5. public void setCheckboxValue(boolean checkboxValue) {
6. this.checkboxValue = checkboxValue;
7. }

Action:

java 代码

1. boolean checkboxValue = equpForm.isCheckboxValue();
2. if(checkboxValue){ ......}
3. else{..............}

这段代码本来没错！Formbean中已经让他置空！但是出现的问题是：

第一次选择完复选框，第二次会自动选上！最后发现是ET的问题！！！

将ec:table中的属性autoIncludeParameters="false"就行，如果为true，它将默认上传第一次参数