user1990278
user1990278

Reputation: 13

How to iterate a list of objects using logic:iterate and display each object property values in jsp?

I have a list of objects (Java beans) assigned to a session attribute in my action class as follows:

List<NewProfile> profiles = ... ;
session.setAttribute("profiles", profiles);

This profiles is a list of objects of a class named NewProfile.

Now I have to retrieve the profiles and iterate through each NewProfile instance and print the values of their attributes/properties as a table using logic:iterate.

Suggestions are welcome! Thanks in advance!

Regards Vijay

Upvotes: 0

Views: 2359

Answers (1)

0x41ndrea
0x41ndrea

Reputation: 385

May be this sample could help logic:iterate

Upvotes: 2

Related Questions