jsp获取所有参数

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

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

 

posted @ 2018-03-17 14:23  aLa神灯  阅读(260)  评论(0编辑  收藏  举报