运行 ............................................................................................................................155
10.3 Struts2 标签 ........................................................................................................................155
显示小组 ....................................................................................................................155
修改小组 ....................................................................................................................156
10.4 ActionSupport.....................................................................................................................159
静态常量 ....................................................................................................................160
校验 ............................................................................................................................160
10.5 在 Struts2 中使用 session...................................................................................................161
管理员表 admin .........................................................................................................161
在包 bean 里新建一个类 Admin...............................................................................162
在包 business 里新建一个类 AdminBusiness...........................................................162
登录页面 login.jsp......................................................................................................163
登录的 Action 程序 Login.........................................................................................163
在 struts.xml 中设置...................................................................................................164
10.6 拦截器 ................................................................................................................................165
面向方面编程〔AOP〕 ............................................................................................165
拦截器程序 PrivilegeInterceptor ...............................................................................165
在 struts.xml 中设置...................................................................................................166
第 11 章 Spring ..........................................................................................168
11.1 Spring 简介.........................................................................................................................168
依赖注入〔DI〕 ........................................................................................................168
Spring 的软件包.........................................................................................................168
11.2 简单例子 ............................................................................................................................170
Washable 接口............................................................................................................171
实现 Washable 接口的类 Clothes .............................................................................171
配置文件 applicationContext.xml..............................................................................171
主程序 ........................................................................................................................172
注入不同类的对象 ....................................................................................................172
11.3 Struts2 与 Spring 相结合 ...................................................................................................172
添加 jar 文件 ..............................................................................................................173
在配置文件中 web.xml 中设置.................................................................................173
编写接口 ....................................................................................................................173
修改业务类 ................................................................................................................174
修改 Action.................................................................................................................175
配置文件 applicationContext.xml..............................................................................176
第 12 章 Hibernate.....................................................................................177
12.1 Hibernate 简介....................................................................................................................177
对象关系映射〔ORM〕 ...........................................................................................177
Hibernate 的软件包....................................................................................................178
12.2 使用 Hibernate 实现增删改查...........................................................................................180
添加 jar 文件 ..............................................................................................................180
映射文件 ....................................................................................................................181
Hibernate 配置文件....................................................................................................181