posted 24 years ago
If you know C language then the include directive is similar to #include directive there.
include directive is used to include a jsp file in the current jsp file. The reason why this could be done is to separate presentation layer into various jsp pages so that if a change is required for one page, the entire presentation layer need not change.
There are two ways of including a file : a) the include directive and another with <jsp:include> action. The latter is used when the design requires the inclusion of the file as run-time. For eg during run-time another jsp file gets generated and this is included at run-time.
HTH