Reputation: 297
As you know,if we want to include other pages in jsp(most are header 、footer), we can write that in our jsp file:
<jsp:include page="/pages/common/header.jsp"></jsp:include>
if I want to achieve the same function that adding some html file in thymeleaf template , how can I do? Is it OK ?
Upvotes: 5
Views: 11858
Reputation: 86
No, you can’t include jsp files in thymeleaf. But you can include other thymeleaf pages. See how :
Upvotes: 6