Creating Array using JSTL or EL

后端 未结 6 1178
迷失自我
迷失自我 2020-12-05 10:06

I\'m working on a web application using Java and its frameworks(Spring 3.1.1). And I\'m trying to avoid using scriptlets as much as possible, however I can\'t find a way oth

6条回答
  •  情歌与酒
    2020-12-05 10:42

    If you use Java EE 7 / Expression Language 3.0 you can create a List literal

    
    

    which can then iterate over much like an Array.

提交回复
热议问题