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

jsp  RSS feed

 
manoj Mahadik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why jsp:include action is less efficient but more flexible as
compared to jsp:include directive?
 
P SOLAIAPPAN
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manoj,
The <%@ include> directive is parsed during the translation phase and can specify only a "static" resource. Since it is compiled during translation time it is efficient. It is less flexible because it cannot handle "dynamic" content.
The <jsp:include> Action is processed at request time (included inside _jspService() method) can include both "static" and "dynamic" contents(hence flexible). Since it is handled at request time it is less efficient
solaiappan
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!