This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello everybody, I had a question in a Brainbench JSP1.2 test like this: <%@ include file="page2.jsp"%> <jsp:include page="page2.jsp"> Q: which will include the most recent version of page2.jsp ? According to JSP.2.10.4 section (Including data in JSP pages - JSP1.2 spec) nothing about it is specified. Even more, in 2.10.3 they say: "A JSP container can include a mechanism for being notified if an included file changes, so the container can recompile the JSP page. However, the JSP 1.2 specification does not have a way of directing the JSP container that included files have changed." That means we cannot know. Anyway if somebody can make these things more clear please do it.
include file is done at translation-time. include page is done at Request-time. So, I'd think that include page is more recent.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Joined: Oct 01, 2003
Thank you Roger for pointing the translantion vs. request-time matter. I've read more on the subject and I think you are right. Even if it isn't clearly marked in the spec. I guess I could compare with C language like this - include file is like "#include <file.h>" and - include page is like linking to a dll and calling a function. I would consider the subject closed.
Originally posted by Roger Chung-Wee: include file is done at translation-time. include page is done at Request-time. So, I'd think that include page is more recent.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com