• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

page 402 of HFSJ doubt

 
nagalatha mitta
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
in page 402 of HFSJ there are few lines-"The key to <jsp:include> is that the container is creating a RequestDispatcher from the page attribute and applying the include() method. The dispatched/included Jsp executes against the same request and response objects,within the same thread".

can anybody please EXPLAIN above lines more clearly.

thanks in advance
 
Ashwin Kumar
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as my understanding goes, following is the behavior when you use <jsp:include> in your code.



As per the given text, the container uses 'request' implicit object to get a reference to ReferenceDispatcher and calls the include method. This happens within the same thread. After including the resource, the page execution continues.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic