It's hard for me with Tiles.
I have a webapp with many views, all of them are made around one template. A template contains about three or four βplaceholders,β and for each view, another, dynamically generated content must be placed in the correct placeholder.
When I define a new view with Tiles, I need to create several JSP files - each with placeholder content. Then I need to update a huge XML file that has a lot of records that look the same.
I am looking for a solution that will allow me to declare the entire contents of this placeholder in the same file and partially include this file in the template (each fragment to its placeholder).
I also looked at Velocity and FreeMarker, but none of them seem to have a partial inclusion feature.
What are my options here? I am ready to consider a change in structure to make it a little less tiring to create another view.
Thanks!
z9u2k source share