Difference between page include and file include in JSP


<jsp:include page="page.jsp" > is action which include the output of page.jsp at dynamically. Instead of copying all content of page.jsp Container translate ,compiles page.jsp separately and copy the output of page.jsp to current page. It means it's dynamic inclusion.


<@include file="page.jsp"> it is directory which copy all content's of page.jsp to current jsp page and then complete current page is translated and compiled. It is static inclusion of file which means copy all source code to current page as it is.

People who read this post also read :



0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More