JSTL forEach separator

后端 未结 3 1088
你的背包
你的背包 2021-01-12 13:48

Is there a built in feature in JSTL to output separators while doing foreach?

The task is to output separators (like commas) after each iteration except the last one

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-12 14:03

    Use the varStatus attribute, which references an object of type LoopTagStatus:

    
        
         | 
    
    

提交回复
热议问题