Say I have a JSP page with JSTL. I use c: forEach and iterate over 5 different sets of objects, each of which is very similar. Each cycle is almost identical. A lot of duplicate code.
I want to make this loop a template - for example, a JSP template, but I want to pass JSTL objects to parameters.
How can i do this?
Or a more general question - how can I create reusable HTML templates in JSP / JSTL?
source
share