Differentiate between pageContext.include and jsp:include?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
Differentiate between pageContext.include and jsp:include?
Rating:
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:
Rating:
Was this information helpful?
Other articles
- JSP Implicit Objects
- What is the doGet() method?
- What is the HttpSessionEvent class?
- What is the doStartTag() method?
- How is scripting disabled?
