實例如下:
1
2
3
4
5
6
7
|
Enumeration rnames=request.getParameterNames(); for (Enumeration e = rnames ; e.hasMoreElements() ;) { String thisName=e.nextElement().toString(); String thisValue=request.getParameter(thisName); System.out.println(thisName+ "-------" +thisValue); } |
以上就是小編為大家帶來的java 遍歷request中的所有表單數據的實例代碼的全部內容了,希望對大家有所幫助,多多支持服務器之家~