It's not a secret anymore!*
The moose likes JSP and the fly likes what is the difference between a Directive Tag include and a ActionTag include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "what is the difference between a Directive Tag include and a ActionTag include" Watch "what is the difference between a Directive Tag include and a ActionTag include" New topic
Author

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

senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
what is the difference between a Directive Tag <include> and a ActionTag <include>
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1449
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.


The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Jagdeep Singh
Ranch Hand

Joined: Oct 14, 2002
Posts: 106
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()


Jagdeep Singh<br />SCJP;SCWCD;IBM Certified XML Solution Developer;SCBCD1.3
sun moon
Greenhorn

Joined: Oct 09, 2002
Posts: 28
hi,
can u pls give me example where to use action include tag.
thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the difference between a Directive Tag include and a ActionTag include