Question

These are my thoughts. Apache tiles is like a manager over jsp files that rules what and where insert. I don't know how it's implemented, maybe something like <jsp:include>. Using such approach as this lib offers we have several advantages. It's clear. But does using this lib mean that we have to avoid using static include - <%@include%>?

Was it helpful?

Solution

No. Static includes using <%@include%> are useful for when that's all you need and offer better performance.

But it does make sense to avoid using <jsp:include ../> when you have the tiles framework in place. In that situation always favour <tiles:insertAttribute ../>

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top