Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Include directive and include std action  RSS feed

 
Arvind Porlekar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Can anybody explain what is the basic difference between include directive and include std action..?

Thanks in advance
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi arvind,

@ include is static include. It is inline inclusion. We cannot have a dynamic filename for directive include. <jsp:include> is dynamic include. Here the included file will be processed as a separate file and the response will be included. We can have a dynamic filename for <jsp:include>

Where include just copy your page code and past your location where you have written include.

Which standard action use for dynamic include.. in that actual process like if you write <jsp:include page="relativeURL" /> then actule response of your relativeURL add to that location. so every request it add compiled response to location.

So that is why it is dynamic.



 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arvind Welcome to javaranch !!!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per forum instructions, please check the FAQ before posting to see if your question is already answered there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!