软件编程
位置:首页>> 软件编程>> java编程>> java 遍历request中的所有表单数据的实例代码

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

作者:jingxian  发布时间:2021-10-21 11:19:26 

标签:java,遍历,request

实例如下:


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);
}
0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com