文件名称:Java Struts教程
文件大小:799KB
文件格式:PDF
更新时间:2010-08-22 10:39:04
Java Struts教程 教程
概述...............................................................................................................................3
Framework概念...........................................................................................................3
Struts的概念和体系结构.............................................................................................4
Struts的与Web App的关系.......................................................................................................4
Struts的体系结构.....................................................................................................................4
从视图角度(View)......................................................................................................5
从模型角度(Model)....................................................................................................5
从控制器角度(Controller)..........................................................................................5
Struts的基本组件包.................................................................................................................5
Struts framework的工作原理和组件.........................................................................6
Struts ActionServlet控制器对象...............................................................................................7
Struts Action Classes.................................................................................................................7
Struts Action Mapping..............................................................................................................8
使用ActionForward导航..........................................................................................................9
Struts ActionForm Bean捕获表单数据..................................................................................10
Struts的其他组件...................................................................................................................11
Validation Framework for Struts.....................................................................................11
Struts TagLib...................................................................................................................11
BeanUtils........................................................................................................................11
Collections.....................................................................................................................12
Digester..........................................................................................................................12
Struts配置文件简介...................................................................................................12
有关Struts Controller及其相关的的配置描述......................................................................12
有关struts tag lib的配置描述.................................................................................................13
有关Struts Action Mapping的配置描述................................................................................13
Form-bean元素...............................................................................................................14
Action元素......................................................................................................................14
Struts高级特性(Struts Advanced Feature).........................................................16
验证........................................................................................................................................16
使用异常处理声明.................................................................................................................18
使用应用模块(Application Modules)...............................................................................20
把JSP放到WEB-INF后以保护JSP源代码............................................................................21
使用 Prebuilt Action类提升开发效率..................................................................................22
Struts标记库...............................................................................................................24
定制JSP标记...........................................................................................................................24
资源束....................................................................................................................................25
Bean标记...............................................................................................................................26
Bean复制标记................................................................................................................26
定义脚本变量的标记.....................................................................................................27
显示Bean属性................................................................................................................28
消息标记和国际化.........................................................................................................28
逻辑标记................................................................................................................................29
条件逻辑.........................................................................................................................29
重复标记.........................................................................................................................31
转发和重定向标记.........................................................................................................32
HTML标记.............................................................................................................................33
显示表单元素和输入控件.............................................................................................33
显示错误信息的标记.....................................................................................................37
其他HTML标记.............................................................................................................38
模板标记................................................................................................................................38
一个简单的示例.........................................................................................................40
Struts的安装...........................................................................................................................40
第一个实验:简单的JSP页...................................................................................................40
第二个实验:struts的国际化................................................................................................41
struts中的Forms......................................................................................................................44
struts:介绍ActionForm...........................................................................................................48
分离Book和BookForm的一个好方法...................................................................................50