• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp:include and performance  RSS feed

 
Kartik Shah
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read on many places that jsp:include should be avoided for performance reason.
If any body can throw some light on how does the jsp:include tag actually executed vis-a-vis <%@include...%>
If we have to avoid it, Are their other ways to achieve similar functionality ?
Thanks and Regards,
Kartik
 
Atanu Dey
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kartik,
The basic difference between jsp:include and <% @ include is that, <%@ include is a include directive and is processed at compile time, whereas jsp:include is processed everytime whenever there is a request at runtime. It is always better to use <%@ include when u have predefined/static files to be included.
Hope this answers yr query,
Atanu
 
Atanu Dey
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kartik,
The basic difference between jsp:include and <% @ include is that, <%@ include is a include directive and is processed at compile time, whereas jsp:include is processed everytime whenever there is a request at runtime. It is always better to use <%@ include when u have predefined/static files to be included.
Hope this answers yr query,
Atanu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!