摘要: 1 2 3 4 5 6 7 用户登录 8 9 10 11 12 13 身份: 14 15 21 22 ... 阅读全文
posted @ 2017-07-12 22:45 XuGuobao 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 1、在Struts2中,通常是先进入jsp页面,再进入action中;如果要实现action页面所得信息的反向输入到上述的jsp页面中,就可以使用request.getAttribute(); 2、request.setAttribute()和getAttribute()方法传递的数据只会存在于We 阅读全文
posted @ 2017-07-12 22:40 XuGuobao 阅读(5852) 评论(0) 推荐(0) 编辑
摘要: 1、在执行action后,如果要在所跳转的目标页面中显示信息,则要用到Action和Session。 2、在Struts2中,Action已经与Servlet API分离,这使得Action具有更加灵活和低耦合的特性。 3、Struts2提供了ActionContext类;ActionContext 阅读全文
posted @ 2017-07-12 22:23 XuGuobao 阅读(1338) 评论(0) 推荐(0) 编辑