我测试了下 完全没问题啊
------------------------
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException,ServletException
{
response.setContentType("text/html");
PrintWriter out= response.getWriter();
String hobbys[]=(String[])request.getParameterValues("hobby");
ArrayList
info=new ArrayList();
for(int j=0;j if(hobbys[j]==null)
hobbys[j]=" ";
info.add(hobbys[j]);
}
for(String s:info)
{
out.println("you Select "+s +"
");
}
}