Following is my code:
<%@ page language="java" contentType="text/html" %>
<jsp:include page="test1.html" flush="true"/>
can anybody suggest something.
I am able to use <jsp:include> to display files from my system.But, i am not able to use <jsp:include> to include files from a remote system.Is that the limitation of <jsp:include>
Yes! <jsp:include> standard action and include directive <%@include..> can include resources only from same context alone. If you want to include external pages then you can use JSTL's <c:import> tag.
Originally posted by Srikanth Nutigattu:
I don't think it is a valid URL.
It's not. It's a Windows file path. Won't work.
It needs to be a URL to a resource that is served by a web server.