文件名称:《Velocity1.4 java开发指南》中文版
文件大小:297KB
文件格式:DOC
更新时间:2013-05-04 14:38:54
Velocity
1.开始入门 3 1.Getting Started 3 2.Dependencies 依赖资源 3 2.参考资源: 4 3.它是如何工作的? 4 1.基本使用模式 4 4.单实例还是多实例(To Singleton Or Not To Singleton...)? 6 1.Singleton Model 6 2.Separate Instance 6 5. The Context 7 1.The Basics 7 2.在模板中用#foreach指令支持迭代对象 8 3.Context Chaining 9 4.模板中的己创建对象 10 5.Context对象的其它用法 10 6.Using Velocity In Servlets 11 1.Servlet Programming 11 2.Deployment 13 7. Using Velocity In General Applications 13 1.The Velocity Helper Class 14 2.Exceptions 16 3.其它细节 16 8.Application Attributes 17 9.EventCartridge and Event Handlers(事件分发和处理) 17 1.Event Handlers 17 2.Using the EventCartridge使用事件分发器 18 10.Velocity Configuration Keys and Values(配置参数名字和值说明) 20 1.Runtime Log 20 2.字符集编码问题 21 3.#foreach() Directive 21 4.#include() and #parse() Directive 21 5.资源管理 21 6.Velocimacro(宏配置) 22 7.语义更改 23 8.运行时配置 23 11.Configuring the Log System(日志记录配置) 23 1.一般的可选日志功能: 23 2.Simple Example of a Custom Logger 25 12.Configuring Resource Loaders(资源装载器配置) 26 1.Resource Loaders 26 2.Configuration Examples 27 3.插入定制资源管理器和Cache实现 29 13.Template Encoding for Internationalization(字符编码和国际化) 29 14.Velocity and XML 30 15.FAQ (Frequently Asked Questions) 32 1.Why Can't I Access Class Members and Constants from VTL? 32 2.Where does Velocity look for Templates? 33 16.Summary 33 17.Appendix 1 : Deploying the Example Servlet 33