String admissionNo = "";
     //得到所有的cookies
     Cookie[] cookies = this.getRequest().getCookies(); Cookie cookie = null;//设置一个为null的cookie
     //循环cookies得到每个具体的cookie值
     for (int j = 0; j < cookies.length; j++) { cookie = cookies[j]; if (cookie.getName().equals("hospital")) { admissionNo = cookie.getValue(); } }

 

相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
相关资源
相似解决方案