<form name="form1" action="../daychart" method=post>
<input type=checkbox name=a1 value="1">
<input type=checkbox name=a1 value="2">
<input type=checkbox name=a1 value="3">
<input type=checkbox name=a1 value="4">
<input type=checkbox name=a1 value="5">
<INPUT type="submit" value="123">
<input type="hidden" name="dddd" value="str">
</form>
获得其值并组成字符串
String[] aa = httpservletrequest.getParameterValues("a1");
String rr = "";
for (int k = 0; k < aa.length; k++) {
rr = rr + aa[k] + ",";
}
rr=new String(rr.getBytes("ISO-8859-1"),"GBK");
//rr.substring(0,rr.length()-1);
System.out.println(rr);