The following question is from HFSJ page 422.
Question: How would you include dynamic content in a
JSP, similar to a server-side include (SSI)? (Choose all that apply.)
A. <%@ include file="/segments/footer.jspf" %>
B. <jsp:include page="/segments/footer.jspf" />
The answer in the book says only Option B is correct. It says A is wrong because include directive is for static include which happens at translation time.
My questions is given A and B, I don't see anything that would be different between the two. Option B does not make use of <jsp
aram .../> or the page attribute value is also not an expression, thus, what makes option B dynamic and not option A? Please let me know. Thanks.