java request获取数组

获取单一参数:

String hostName = request.getParameter("host");

String url = request.getParameter("url");

获取参数数组:

String[] carrier = request.getParameterValues("carrier");
String[] access = request.getParameterValues("access");

 

你可能感兴趣的:(java,request)