1. 程式人生 > >velocity在前臺遍歷request域的連結串列

velocity在前臺遍歷request域的連結串列

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

 

descriptionList是連結串列的名字,velocity在使用變數的時候,前面都要加$,如果在$的後面加上!,當變數的值為空時就不顯示。