您的位置:首页 > 编程语言 > Java开发

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

2016-09-27 18:12 573 查看
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中的所有表单数据的实例代码的全部内容了,希望对大家有所帮助,多多支持脚本之家~

您可能感兴趣的文章:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐