[Ljava.lang.String --》 String[ ] 类型
在Servlet中采用map的方式遍历所有提交的参数及其值:
Map paramNames = req.getParameterMap();
Set params = paramNames.entrySet();
Iterator itr = params.iterator();
PrintWriter out = resp.getWriter();
while(itr.hasNext()){
Map.Entry entry = (Map.Entry)itr.next();
Object key = entry.getKey();
Object[] value = (Object[]) entry.getValue();
out.println(key.toString()+" "+ Integer.parseInt(value[0].toString()) +"<br/>");
}