JSTL Core c:import

<c:import> is just like <jsp:include page=””> but it can include the content of any resource either within server or outside the server.

Example

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title><c:import> Tag Example</title>
</head>
<body>
<c:import var="content" url="http://www.startwithjava.com"/>
<c:out value="${content}"/>
</body>
</html>

Leave a Reply