A
alan_sec
I have a problem using JSTL tag c:import.
When i use jsp:include it works and if i use c:import i doesn't work. I
don't know what is the problem.
jsp file:
this works:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
....
<table width="100%">
<tr>
<td>
<jsp:include page="predefined/predefined1.jsp"/>
</td>
</tr>
</table>
but this doesn't:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
....
<table width="100%">
<tr>
<td>
<c:import url="predefined/predefined1.jsp" />
</td>
</tr>
</table>
predefined/predefined1.jsp
The file that is being included (predefined/predefined1.jsp) is file on
local disk.
Alan
When i use jsp:include it works and if i use c:import i doesn't work. I
don't know what is the problem.
jsp file:
this works:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
....
<table width="100%">
<tr>
<td>
<jsp:include page="predefined/predefined1.jsp"/>
</td>
</tr>
</table>
but this doesn't:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
....
<table width="100%">
<tr>
<td>
<c:import url="predefined/predefined1.jsp" />
</td>
</tr>
</table>
predefined/predefined1.jsp
The file that is being included (predefined/predefined1.jsp) is file on
local disk.
Alan