How to implement a “include” jsp tag?

大憨熊 提交于 2019-12-03 22:11:48

Already there is a standard jsp tag for this.

This is to include page at runtime.
<jsp:include page="includedPage" />

and

This is to include page at compile time.
<%@ include file="banner.jsp" %>

Links:

There is already an include tag in JSP that include other static or dynamic JSP or other resource in current JSP. Your requirement is exact same and can be done by jsp include tag. You can learn more on JSP Include tag and other JSP related things on apekshit.com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!