包含所有传递的项目名。
方法 | 描述 |
---|---|
hasMoreElements() | 遍历时确定是否还有下一项 |
(String) nextElement() | 取得下一个项目名 |
Enumeration paramNames = request.getParameterNames(); while(paramNames.hasMoreElements()) { String paramName = (String)paramNames.nextElement(); String[] paramValues = request.getParameterValues(paramName); } |