如何在login_success.jsp页面中使用session.getAttribute方法输出username和password?
首先你要将这个值和一个键联系起来
session.setAttribute("loginUser", loginUser.getUsername());
用这个方法然后又是用session.getAttribute(
"username"
)这个方法输出
<%=session.getAttribute("username")%> <%=session.getAttribute("password")%>