从HttpServletRequest中获取请求参数名方法

public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		for (Enumeration e = request.getParameterNames() ; e.hasMoreElements() ;) {
			System.out.println(e.nextElement());
		}		
	}

request.getParameterNames()获取请求参数名

你可能感兴趣的:(从HttpServletRequest中获取请求参数名方法)