How to loop through objects in Java Jstl? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to loop through objects in Java Jstl?

I am calling third party API. it reruns Objects like folowing. { name : object1, date : 1/1/2020 }, { name : object2, date : 2/1/2020 }, { name : object3, date : 1/1/2021 }, { name : object4, date : 2/1/2021 } Now i am trying to loop through above objects. but it gives me error. so i think because of it is not Array. so how can i loop through above object and display name and date using JSTL tag?

11th May 2021, 3:31 PM
Java Developer
Java Developer - avatar
1 Answer