![](https://img-blog.csdnimg.cn/20190918135101160.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Velocity
DevGu
这个作者很懒,什么都没留下…
展开
-
Velocity语法大全
一、基本语法 1、"#"用来标识Velocity的脚本语句,包括#set、#if 、#else、#end、#foreach、#end、#iinclude、#parse、#macro等; 如: #if($info.imgs) #else #end 2、"$"用来标识一个对象(或理解为变量);如 如:$i、$msg、$TagUtil.optio转载 2015-06-02 10:40:18 · 1929 阅读 · 0 评论 -
velocity 显示List和Map方法
一.遍历个map类型1.先看后台java程序 Java代码Map<String,String> paramValues=new HashMap<String, String>(); *** *** 中间赋值操作省略了 *** data.put("paramValues", paramValues);//传值给velocity 2.前台velocity模板文件中取出这个map的k转载 2015-06-03 14:29:58 · 862 阅读 · 0 评论 -
velocity 配置文件详解
在velocity的发布方包中有一个velocity.properties(位于 org.apache.velocity.runtime.defaults package下, 文件定义了velocity的配置信息org.apache.velocity.runtime.RuntimeConstants中定义了key值)#模板编码:input.encoding=ISO-8859-1//模板输入编转载 2015-06-03 11:56:13 · 943 阅读 · 0 评论