永发信息网

The method getValue(String) from the type HttpSession is deprecated

答案:4  悬赏:50  手机版
解决时间 2021-11-08 15:46
  • 提问者网友:放下
  • 2021-11-08 06:42
The method getValue(String) from the type HttpSession is deprecated
最佳答案
  • 五星知识达人网友:躲不过心动
  • 2021-11-08 08:19
用session.getAttribute("IsLogin"),那个被废弃了。
全部回答
  • 1楼网友:煞尾
  • 2021-11-08 11:00
session.getAttribute(key);
  • 2楼网友:青灯有味
  • 2021-11-08 10:06
getValue

换成 getAttribute 试试
  • 3楼网友:杯酒困英雄
  • 2021-11-08 09:16
ya178 帮帮团:
1.要用:session.getAttribute("IsLogin")
2.(String)session.getValue("IsLogin")!="true",这个判断太...应该是:!(String)session.getValue("IsLogin").equals("true")追问我改为getAttribute后,为什么一些html语句会出现警告?
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯