Anyone care to explain what exactly is the difference between these two
commands in a jsp page:

A. <%@ include file="test4.jsp" %>
B. <jsp:include page="test4.jsp" />

They seem to act exactly the same. Says here in my book ("Core Servlets and
JSP") that include (A) won't automatically display changes made to the
test4.jsp without itselft being updated. However, when I run include (A) and
then modify test4.jsp, it picks up the changes made to test4.jsp just fine.
Also, my book leads to you believe that include (B) cannot include jsp
files, only static html. Again, my tests show otherwise. I can include a jsp
page that contains scriptlets.

What exactly is the difference between these 2 includes?

Note, I am using JRun 2.3.3. My book does mention that specific servlet
engines might implemen include implementations differently. So much for
portability!

Thanks.  - Matt

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to