DEVFYI - Developer Resource - FYI

How do I mix JSP and SSI #include? What is the difference between include directive & jsp:include action?

JSP Interview Questions and Answers


(Continued from previous question...)

43. How do I mix JSP and SSI #include? What is the difference between include directive & jsp:include action?

Difference between include directive and
1. provides the benifits of automatic recompliation,smaller class size ,since the code corresponding to the included page is not present in the servlet for every included jsp page and option of specifying the additional request parameter.
2.The also supports the use of request time attributes valus for dynamically specifying included page which directive does not.
3.the include directive can only incorporate contents from a static document.
4. can be used to include dynamically generated output eg. from servlets.
5.include directive offers the option of sharing local variables,better run time efficiency.
6.Because the include directive is processed during translation and compilation,it does not impose any restrictions on output buffering.

(Continued on next question...)

Other Interview Questions