jsp页面中:
购买的产品:<input type='checkbox' name='Products' value='a'>
<input type='checkbox' name='Products' value='b'>
<input type='checkbox' name='Products' value='c'>
<input type='checkbox' name='Products' value='d'>
control中:
String[] Product = request.getParameterValues("Products");
StringBuffer g = new StringBuffer();
for(int i=0;i< Product.length;i++){//字符串拼接时使用
g.append(Product[i]+" ");
}
String Products = g.toString();