且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Servlet容器中的请求参数顺序

更新时间:2023-12-03 13:42:04

通常,您不应该依赖于参数的顺序.如果您确实确定这是必要的,则可以:

Normally you should not depend on the order of parameters. If you are really sure this is necessary, you can:

  • 使用 request.getQueryString()查看 GET 参数
  • 获取原始请求( request.getInputStream())并读取提交的 POST 参数.
  • use request.getQueryString() to see GET parameters
  • get the raw request (request.getInputStream()) and read the submitted POST params.