摘要: 1. type /r1.jsp //默认type,服务器自动跳转连接,客户端不知道跳转 /r2.jsp //服务器返回新连接,客户端再次发送请求跳转 r1 //访问另一个action, (此处为name="r1"的action,不要加"/",可以访问另一个包里的action, page/... 阅读全文
posted @ 2014-09-26 18:37 四点水这 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1. 模块包含 include 1.1写一个login.xml /Hello.jsp 1.2 在struts.xml 文件中包含 //包含与直接写在... 阅读全文
posted @ 2014-09-26 16:07 四点水这 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1. 实现接口: implements SessionAware,RequestAware,ApplicationAware //自动取得session,request,application元素 //可以自己取得元素: session = ActionContext.getContext(... 阅读全文
posted @ 2014-09-26 15:57 四点水这 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 1. 简易数据验证 1.1 在strts.xml文件中加入1 2 /{1}.jsp3 /error.jsp //用于显示错误界面4 1.2 在java文件中添加判断条件 1 public cl... 阅读全文
posted @ 2014-09-26 01:04 四点水这 阅读(211) 评论(0) 推荐(0) 编辑