首页 > 编程 > Java > 正文

java 遍历request中的所有表单数据的实例代码

2019-11-26 13:47:27
字体:
来源:转载
供稿:网友

实例如下:

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中的所有表单数据的实例代码的全部内容了,希望对大家有所帮助,多多支持武林网~

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表