<span class="x-red">${pageContext.session.getAttribute("current").getAdminAccount()}</span>!

${pageContext.session.getAttribute("current").getAdminAccount()}

错误类型:The method getGetAttribute() is undefined for the type HttpSession

有人知道这是咋回事吗

<%=pageContext.getSession().getAttribute("name")%>
el表达式
${sessionScope.xxx}

在Action中保存登录的基本信息:request.getSession().setAttribute("adminid", str);
在JSP页面中:${sessionScope.adminid}