摘要: 1 修改CustomerAction代码 2 修改jsp/customer/list.jsp代码 阅读全文
posted @ 2018-03-07 21:34 Jepson6669 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 struts2 获得参数 1-属性驱动获得参数 1 Demo8Action 2 struts.xml 3 form1.jsp 4 regist.jsp 2 struts2 获得参数 2-对象驱动 1 User类 package www.test.domain; import java.util. 阅读全文
posted @ 2018-03-07 17:10 Jepson6669 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1 原理 三个域合一的时候相同的键值对以小的域为准。ActionContext 对象创建:每次请求的时候都会创建一个与请求对应的 ActionContext 对象。ActionContext 销毁:请求处理完 ActionContext 销毁。 ActionContext 的生命周期由其中生命周期最 阅读全文
posted @ 2018-03-07 16:57 Jepson6669 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 转发 2 重定向 3 转发到Action 4 重定向到Action 阅读全文
posted @ 2018-03-07 16:52 Jepson6669 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 src下配置文件 1 struts.xml 2 hibernate.cfg.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Co 阅读全文
posted @ 2018-03-07 16:48 Jepson6669 阅读(171) 评论(0) 推荐(0) 编辑