Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pageContext.include and jsp:include  RSS feed

 
srikanth darbha
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Differentiate between pageContext.include and jsp:include?

As far as i know the differences are

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"/>

But i have a doubt what does flushing of data mean? does it mean that the data is wriiten to the response object?


Thanks in advance
 
Kartik Mavani
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Flushing of data means, the data is flushed through the IO to the client browser.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!