1.

Differentiate Between Pagecontext.include And Jsp:include?

Answer»

The <jsp:INCLUDE> standard action and thepageContext.include() method are both used to include resources at runtime. However, thepageContext.include() method ALWAYS flushes the output of the CURRENT page before INCLUDING the other components, whereas<jsp:include> flushes the output of the current page only if the value = of FLUSH is explicitly set to true as follows:
<jsp:include page="/index.jsp" flush="true"/>

The <jsp:include> standard action and thepageContext.include() method are both used to include resources at runtime. However, thepageContext.include() method always flushes the output of the current page before including the other components, whereas<jsp:include> flushes the output of the current page only if the value = of flush is explicitly set to true as follows:
<jsp:include page="/index.jsp" flush="true"/>



Discussion

No Comment Found