Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
senthil sen
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>
 
John Wetherbie
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.
 
Jagdeep Singh
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()
 
sun moon
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic