سؤال

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%>?

هل كانت مفيدة؟

المحلول

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 ../>

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top