码迷,mamicode.com
首页 > Web开发 > 详细

jsp获取所有参数

时间:2018-03-17 15:23:27      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:string   bsp   while   sys   print   system   jsp   element   pre   

Enumeration<String> paraNames = request.getParameterNames(); 

while(paraNames.hasMoreElements()){ 
    String paraKey = paraNames.nextElement(); 
    String paraValue  = request.getParameter(paraKey); 
    System.out.println(paraKey + "=" + paraValue); 
}

 

jsp获取所有参数

标签:string   bsp   while   sys   print   system   jsp   element   pre   

原文地址:https://www.cnblogs.com/lxh520/p/8589583.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!