hi
Please explain the differance between the include directive and include action
<%@include%> and <jsp:include/>
both are slightly different
thanks
mani
-
2 includes (2 messages)
- Posted by: mani km
- Posted on: December 07 2000 18:54 EST
Threaded Messages (2)
- 2 includes by Chiew Lee on December 08 2000 11:22 EST
- 2 includes by Kapil Israni on December 11 2000 16:47 EST
-
2 includes[ Go to top ]
- Posted by: Chiew Lee
- Posted on: December 08 2000 11:22 EST
- in response to mani km
-
2 includes[ Go to top ]
- Posted by: Kapil Israni
- Posted on: December 11 2000 16:47 EST
- in response to mani km
hi mani,
well <%@include%> is a include directive. and basically is a static inclue. what it means that the jsp engine picks the contents of the .jsp file referred by the above directive and then processes the output. thus any variables declared in the inclueded .jsp file will be available to the main .jsp file which contains this directive.
this is somewhat similar to the C - #include pre-compiler directive.
where <jsp:include/> works differently i.e, its a dynamic include. the included jsp file is processed and then the output genarated is included as part of the main jsp file which contains this tag.
hope this helps
kapil