I have about 20 JSP pages and each has three parts
Part1
Part2
Part3
Here Part2 is the JSP specific code that differs fron JSP to JSP
Part1 and Part3 are the common piece of codes that are same in all the JSPs, so here we are separating the codes Part1 and Part3, keeping them in two different JSP pages and including them in the main JSP page. Now this is working fine.
My 1st doubt is,
I want to keep Part1 and Part3 in a single file and include this at those places without affecting the functionality, can this be achieved?
Here while including the files in the JSP, in this case do i have to use the include directive(<%@include%>) or standard JSP include(<jsp:include>) ? Which one do i have to use?
Part1
Part2
Part3
Here Part2 is the JSP specific code that differs fron JSP to JSP
Part1 and Part3 are the common piece of codes that are same in all the JSPs, so here we are separating the codes Part1 and Part3, keeping them in two different JSP pages and including them in the main JSP page. Now this is working fine.
My 1st doubt is,
I want to keep Part1 and Part3 in a single file and include this at those places without affecting the functionality, can this be achieved?
Here while including the files in the JSP, in this case do i have to use the include directive(<%@include%>) or standard JSP include(<jsp:include>) ? Which one do i have to use?