jsp中获取当前session中登录的用户信息
jsp头部加上:<%@ taglib uri =“http://java.sun.com/jsp/jstl/core”prefix =“c”%>body中调用:${customername}${sessionScope.customername}<%=request.getSession().getAttribute("customername&
·
jsp头部加上:
<%@ taglib uri =“http://java.sun.com/jsp/jstl/core”prefix =“c”%>
body中调用:
${customername}
${sessionScope.customername}
<%=request.getSession().getAttribute("customername") %>
更多推荐
所有评论(0)