Enumeration enum = req.getParameterNames ();
while (enum.hasMoreElements()) {
String name = (String) enum.nextElement();
String values[] = req.getParameterValues(name);
if (values != null) {
for (int i=0; i< values.length; i++) {
out.println (name + "( " + i +" )" + values[i]);
}
}
}
while (enum.hasMoreElements()) {
String name = (String) enum.nextElement();
String values[] = req.getParameterValues(name);
if (values != null) {
for (int i=0; i< values.length; i++) {
out.println (name + "( " + i +" )" + values[i]);
}
}
}
디버깅이나 parameter 객체를 모두 찾을때 효과적임