Monday, 26 December 2016

What is difference between include directive and include action ?


Here get all the differences between jsp include directive and include action.

Include Directive
Include Action
It includes the content of page at Translation Time.
It includes the content of page at Request Time.
It is mostly use for static pages.
It is mostly use for dynamic pages.
Changes are not visible until the jsp file will compile again.
Changes are visible as we request the Jsp page again.
It uses file attribute to specify resource.
It uses page attribute to specify resource.
It include those files which are available in same application.
It include file which are available in same application or another web application.
Syntax :
<%@ include file = ‘file_name’ %>
Syntax :
<jsp:include page = ‘file_name’>

      
Blog Author - Pushkar Khosla,
Software Developer by Profession with 3.0 Yrs of Experience , through this blog i'am sharing my industrial Java Knowledge to entire world. For any question or query any one can comment below or mail me at pushkar.itsitm52@gmail.com.

This blog is all about to learn Core Java ,Interview Programs and Coding tricks to polish your Java Knowledge. If you like the content of this blog please share this with your friends.



No comments:

Post a Comment