在Action中保存登录的基本信息,request.getSession().setAttribute("adminid", str);
在JSP页面中:${sessionScope.adminid}
request.setAttribute("adminid",str);---->${#request.adminid}
Struts2中 <s:hidden name="adminid" value="#session.adminid"></s:hidden> 或者 <s:hidden value="%{#session.adminid}" name="adminid" id="adminid"></s:hidden>