velocity在前台遍历request域的链表

版权声明:转载请声明 https://blog.csdn.net/weixin_42451919/article/details/82763462

#foreach($sal in ${descriptionList})  
    <strong>$sal</strong>  
    #end

descriptionList是链表的名字,velocity在使用变量的时候,前面都要加$,如果在$的后面加上!,当变量的值为空时就不显示。

猜你喜欢

转载自blog.csdn.net/weixin_42451919/article/details/82763462
今日推荐