2012年3月23日

struts2中的session权限控制(转)

摘要: 1.在登录的session中设置一个属性。 在登录的action中的execute方法中加入以下代码。 @SuppressWarnings("unchecked") public String execute() throws Exception{ if ("lirongxing".equals(this.getUsername().trim())&& "lrx".equals(this.getPassword().trim())){ Map map = ActionContext.getContext().getSe 阅读全文

posted @ 2012-03-23 02:04 friday295 阅读(252) 评论(0) 推荐(0) 编辑

导航