How do you iterate through a list of objects?

后端 未结 5 766
南笙
南笙 2021-01-04 11:23

I have a User class that has a String username in it. I have a list of users that I\'m trying to display in a table using

                         

        
5条回答
  •  北海茫月
    2021-01-04 12:00

    You can use JSTL with Struts. It has a tag in its core library that will allow you to iterate through a list or any other collection easily.

提交回复
热议问题