Include action <jsp:include> provides the benefits of automatic re-compliation, 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.
The <jsp:include> also supports the use of request time attributes values for dynamically specifying included page which directive does not.
The include directive can only incorporate contents from a static document.
<jsp:include> can be used to include dynamically generated output eg. from servlets.
Include directive offers the option of sharing local variables, better run time efficiency.
Because the include directive is processed during translation and compilation,it does not impose any restrictions on output buffering.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.