ITeye博客

struts2 ActionSupport如何设置session常量

cherryQQ · 2013-12-06 11:55 · js · Ajax · struts2 · Web前端 · Markdown

action

 

 

Map session = ActionContext.getContext().getSession().put("aaaa","eeee");

 

 

 

 

 

jsp

 

<%

String loginName = (String)request.getSession().getAttribute("loginName");

 

 

%>

 

<%= loginName%>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。