非web环境Velocity tool的使用
摘要:功能:使用Velocity的tool功能,去格式化日期字段, 条件限制:非web环境,velocity1.4.jar + velocity-tool-view-1.1.jar 思路:模拟web环境下的ChainedContext,来定制一个context即可 View Code publicclassVelocityUtil{publicstaticfinalStringENCODING="UTF-8";publicstaticfinalStringTOOLBOX_PATH="velocity/template/toolbox.xml";privateV
阅读全文
posted @
2011-04-12 15:02
TroyZ
阅读(693)
推荐(0) 编辑