Please send your Questions & Answers or Feedback to "mohan@javabook.org"

Differentiate between pageContext.include and jsp:include?


The <jsp:include> standard action and the pageContext.include() method are both used to include resources at runtime. However, the pageContext.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"/>
Related Posts Plugin for WordPress, Blogger...
Flag Counter