![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
velocity
ch3c_es
这个作者很懒,什么都没留下…
展开
-
velocity示例
[code="java"] #set($foo = "velocity") Hello $foo world; My name is $myname Your name is $yourname [/code] [code="java"] public static void main(String[] args) { try { ...原创 2012-02-13 12:17:42 · 73 阅读 · 0 评论 -
velocity常用指令
常用指令和例子 1、$!obj 直接返回对象结果。 如:在html标签中显示java对象msg的值。$!msg 在html标签中显示经过HtmlUtil对象处理过后的msg对象的值 $!HtmlUtil.doSomething($!msg) 2、#if($!obj) #else #end 判断语句 如:在EasyJWeb各种开源应用中,我们经常看到的...原创 2012-02-16 08:43:22 · 225 阅读 · 0 评论