前台代码应该是
苹果
香蕉
橘子
后台获取代码是
response.setCharacterEncoding("UTF-8");
request.setCharacterEncoding("UTF-8");
String [] shuigou=request.getParameterValues("checkboxname");
for (int i = 0; i < shuigou.length; i++) {
String shuiguoname=shuigou[i];
System.out.println(shuiguoname);
}