• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is the difference between a Directive Tag include and a ActionTag include  RSS feed

 
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between a Directive Tag <include> and a ActionTag <include>
 
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The directive include allows inclusion of JSP content. The include action includes files at request time. This means the containing JSP is already a servlet so the included file can't contain JSP. At least that's how I remember it.
If there is a more accurate explanation please chime in.
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Include directive tells the JSP engine to include the contents of another file (HTML,JSP,XML,text) in the current page at transalation time while Include action does it at request time.
Semantics of <jsp:include> are the same as RequestDispatcher.include()
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can u pls give me example where to use action include tag.
thanks in advance
 
Do you want ants? Because that's how you get ants. And a tiny ads:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!