enumeration遍历request

来源:互联网 发布:阅读器源码 编辑:程序博客网 时间:2024/05/29 11:13
JAVA:
  1. Enumeration rnames=req.getParameterNames();
  2.  
  3. for (Enumeration e = rnames ; e.hasMoreElements() ;) {
  4.          String thisName=e.nextElement().toString();
  5.         String thisValue=req.getParameter(thisName);
  6.         System.out.println(thisName+"-------"+thisValue);
  7. }

 

原创粉丝点击