I want to develop an application using spring boot, jsp, bootstrap and hibernate. Where my each jsp page have the header, footer and left pane same but only the middle section get change based on the functionality. And i dont want to create each page with copying the same all over and even dont want impact application performance by adding all the UI dependencies in each and every JSP. So can someone please suggest me the best approach to deal with it.
I searched and find the Angular JS an react JS options, but I already have one application built in Spring 4, JSP, Hibernate technology stack and one which i have to develop is going to integrate with old one, so I think technology stack may impact the integration. For integration i am thinking about maven multimodule project.
Hence I need suggestion as i am in initial stages of development .
You make use of
jsp:include
; Here is one tutorial but I'm sure there's many others. https://www.roseindia.net/jsp/include-tag-jsp.shtmlExample:
<jsp:include page="includes/header.jsp" flush="true"> <jsp:param name="title" value="Example" /> </jsp:include>
header.jsp: