JSTL forEach reverse order

后端 未结 5 1256
眼角桃花
眼角桃花 2020-12-06 04:16

Using JSTL\'s forEach tag, is it possible to iterate in reverse order?

5条回答
  •  眼角桃花
    2020-12-06 05:00

    You could reverse the Collection before adding it to your model.

    This also means you would not need to do anything in the view layer to achieve your requirement.

提交回复
热议问题