Javatpoint Logo

Example for difference between Include action and Include Page Directive in JSP?

By: pank4a*** On: Tue Oct 08 01:21:24 EDT 2013     Question Reputation2 Answer Reputation0 Quiz Belt Series Points0  2Blank User
I am using Apache tomcat.Up2Down

 
jsp:include action tag is used to include another resource such as html,jsp.
Syntax:
<jsp:include page="index.jsp"> where index.jsp is some other resource.
Using include directive the original content of the resource is included in the present resource.
Syntax:
<%@include file="index.jsp"%> where index.jsp is another resource.
Image Created1Down

By: [email protected] On: Tue Oct 08 04:20:14 EDT 2013 Question Reputation0 Answer Reputation359 Belt Series Points0 359User Image
Are You Satisfied :1Yes2No
 
But Both will display the same result then what is the difference?Image Created0Down

By: [email protected] On: Tue Oct 08 06:16:22 EDT 2013 Question Reputation2 Answer Reputation0 Belt Series Points0 2User Image
Are You Satisfied :1Yes1No
 
But both are giving the same result then how am i supposed to find out the difference.Image Created0Down

By: [email protected] On: Sat Oct 12 04:37:27 EDT 2013 Question Reputation2 Answer Reputation0 Belt Series Points0 2User Image
Are You Satisfied :1Yes0No