文件名称:
AnyFo - Struts 2_1爆胎易筋丸.pdf
开发工具:
文件大小: 205kb
下载次数: 0
上传时间: 2013-03-26
详细说明: 目录 1 入门.....................................................................................................................................4 1.1 环境搭建..................................................................................................................4 1.2 基础开发..................................................................................................................4 1.2.1 输入页面......................................................................................................4 1.2.2 输出页面.................... ..................................................................................5 1.2.3 Action 类......................................................................................................5 1.2.4 struts.xml 配置文件......................................................................................7 2 Action 研究.........................................................................................................................8 2.1 访问Servlet API.......................................................................................................8 2.2 动态方法调用..........................................................................................................8 2.2.1 多方法模式..................................................................................................8 2.2.2 多Action 模式..............................................................................................9 2.2.3 模糊匹配模式.............................................................................................10 2.3 模型驱动................................................................................................................11 2.3.1 模型............................................................................................................11 2.3.2 Action .........................................................................................................11 2.4 异常处理................................................................................................................12 2.4.1 自定义异常类.............................................................................................12 2.4.2 异常定义....................................................................................................13 2.4.3 异常显示页面.............................................................................................13 3 配置文件...........................................................................................................................13 3.1 Result .....................................................................................................................13 3.1.1 跳转到Action.............................................................................................13 4 国际化...............................................................................................................................13 4.1 资源文件................................................................................................................13 4.2 添加国际化资源库................................................................................................14 4.3 页面显示国际化信息.............................................................................................14 4.4 带参数的国际化信息.............................................................................................14 5 数据验证...........................................................................................................................14 5.1 validate 方法验证...................................................................................................14 5.1.1 国际化文件................................................................................................14 5.1.2 Action 类....................................................................................................14 5.1.3 Action 配置.................................................................................................15 5.1.4 错误信息的显示.........................................................................................16 5.2 validateXXX 方法验证..........................................................................................16 5.3 验证框架................................................................................................................17 5.3.1 Action 类....................................................................................................17 5.3.2 验证文件....................................................................................................17 5.3.3 前台验证....................................................................................................18 5.3.4 验证规则....................................................................................................18 6 转换器...............................................................................................................................20 6.1 封装类...................................................................................................................20 6.2 Action.....................................................................................................................20 6.3 转换器代码............................................................................................................21 6.3.1 基于OGNL ................................................................................................21 6.3.2 基于Struts ..................................................................................................22 6.4 转换器申明............................................................................................................22 6.4.1 局部转换器声明.........................................................................................22 6.4.2 全局转换器声明.........................................................................................23 7 AJAX.................................................................................................................................23 7.1 AJAX 验证.............................................................................................................23 7.1.1 页面............................................................................................................23 7.1.2 Action .........................................................................................................23 7.1.3 验证框架....................................................................................................24 8 标签库...............................................................................................................................24 8.1 控制标签................................................................................................................24 8.1.1 s:if...............................................................................................................24 8.1.2 s:iterator ......................................................................................................24 8.2 数据标签................................................................................................................25 8.2.1 显示一个数据.............................................................................................25 8.2.2 s:action........................................................................................................25 8.3 表单标签................................................................................................................26 8.3.1 s:checkbox ..................................................................................................26 8.3.2 原始Checkbox ...........................................................................................27 8.3.3 s:checkboxlist..............................................................................................28 8.3.4 s:textfield ....................................................................................................28 8.3.5 s:datetimepicker ..........................................................................................29 9 文件上传和下载................................................................................................................29 9.1 文件上传................................................................................................................29 9.1.1 单个文件....................................................................................................29 9.2 文件下载................................................................................................................30 9.2.1 页面............................................................................................................30 9.2.2 Action .........................................................................................................30 9.2.3 配置............................................................................................................31 10 项目开发技巧............................................................................................................31 10.1 多配置文件........................................................................................................31 11 整合Spring................................................................................................................31 11.1 包处理...................................................................................................................31 11.2 添加对Spring 的支持............................................................................................32 11.3 Spring 配置文件.....................................................................................................32 11.4 Struts 配置文件......................................................................................................32 ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.