JAVA获取请求链接中所有参数(GET请求)

Enumeration paraNames=request.getParameterNames();

for(Enumeration e=paraNames;e.hasMoreElements()){

        String thisName=e.nextElement().toString();  //name名
 
        String thisValue=request.getParameter(thisName);   //name名对应的值


    }

  

转载于:https://www.cnblogs.com/pxblog/p/10805308.html

你可能感兴趣的:(JAVA获取请求链接中所有参数(GET请求))