cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to print a list of products in StoreFront ?

0 Kudos
1,300

Hi,

I have created a new JSP page and I asociated a controller for that new JSP page. I have a method to search information about all the products. I need to now how could I send the information to the JSP, so that I could have a table to show the information for each product.

Note: I was able to print one product information in the storefront. But, I need to print all products.

Please your help.

Thank you!.

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Kudos

Why is this a problem? It's a pretty straight forward in Spring MVC. You can find several posts on the internet for such a requirement e.g https://stackoverflow.com/questions/43960447/how-to-pass-list-from-controller-to-jsp

Please let me know if you are looking for something else.

Answers (1)

Answers (1)

0 Kudos

Hi Victor,

If you are having data related to all the products say List< ProductData> allProducts, pass this data as model Attribute to jsp, and you can iterate this list of ProductData in your jsp to display the information about each product.

Thanks Jeevan

0 Kudos

plz send code