在jsp做分页的时候,有时候我们想获取get请求链接中的参数保留下来。

比如客户端发送

http://localhost/test.do?a=b&c=d&e=f

通过request.getQueryString()得到的是

a=b&c=d&e=f

API 中注释写到:’

意思是:获取带参数查询。

          post方法传的参数,getQueryString()得不到,

          它只对get方法得到的数据有效。

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
猜你喜欢
  • 2022-01-27
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
相关资源
相似解决方案