I have a relative path to another context on the same server
I can’t use <jsp:include .../> nor the <%@ include .../> directive are meant to be used with URL that are relative to the context
When i try <c:import url="/dir/file.html" context="/context" var="tfile" scope="page"/> needs an absolute url
${tfile}
i get the c:/dirExternal/dir/jsp/mainjsp.jsp is not available
try this code in your jsp to include html file form different context
OR you can do like given below to..
access different context of same server
javax.servlet.ServletContext context = application.getContext("WAR Name");now access pages
javax.servlet.RequestDispatcher rd = context.getRequestDispatcher("index.html");rd.include(request, response);
and last one entry in TOMCAT location conf/server.xml
<context path="/WAR Name" debug="0" reloadable="true" crosscontext="true">