Please explain the differance between the include directive and include action
<%@include%> and <jsp:include/>
both are slightly different
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