得到:
${sessionScope.userId }

附:
放入:

可以这么放入session中,
request.getSession().setAttribute("userId", rs.getString(1)

 

也可以这么放入session中,
<c:set value="coo" var="name1" scope="session"></c:set>

 

还可以直接设置,然后取出:

<c:set var="ok" value="${sessionScope.UserInfo.userName}"/>

直接用:${ok}取得session中的值

相关文章:

  • 2021-11-26
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-12-27
相关资源
相似解决方案