Just add it in jsp
第一种方式
<%@ include file="common/heard.jsp"%>
<%@ include file="common/footer.jsp"%>
第二种方式
<jsp:include page="common/heard.jsp"/>
<jsp:include page="common/footer.jsp"/>
The first way is to write directly to the servlet, you can get the variables of the imported file
The second is to add directly