简体   繁体   中英

How to Get The Parameters Name From The Http request

我想从我的Http请求中获取参数名称,请给我解决方案,谢谢

You can use.

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

        while (parameterNames.hasMoreElements()) {

            String paramName = parameterNames.nextElement();
            out.write(paramName);

        }

You can visit following link for more details. http://examples.javacodegeeks.com/enterprise-java/servlet/get-all-request-parameters-in-servlet/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM