JSP Include

JSP Include

In this post I will show you how to use JSP Include tag to include static or dynamic content to your calling JSP page.

JSP include tag: <jsp:include page=”{ relativeURL | <%= expression %>}” flush=”true” /> allows the user to include static or dynamic content.

JSP Syntax
<jsp:include page=”{ relativeURL | <%= expression %>}” flush=”true” />

Examples
<jsp:include page=”scripts/login.jsp” />
<jsp:include page=”copyright.html” />
<jsp:include page=”/index.html” />

Read more about JSP Include Tag at http://www.roseindia.net/jsp/IncludeDir_Example.shtml

Thanks

Leave a Reply

You must be logged in to post a comment.