我想将图像包含在“usermenu.jspf文件中,然后将其包含在主flat_status.jsp文件中
<tr title="Apply Here">
<td height="41" style="cursor:pointer"><img src="<%=request.getContextPath()%>/images/user_manager.jpg" width="38" height="41"></td>
<td height="41" class="leftPanel">Apply Here</td>
</tr>
我使用了以下标记在主JSP文件中包含JSPF文件
<jsp:include page="WEB-INF/jspf/usermenu.jspf"></jsp:include>
我试过这个,但它不起作用......任何人都可以帮助我...... ???
这是我的文件目录的屏幕截图
答案 0 :(得分:1)
如果您使用<jsp:include page="...."></jsp:include>
,则必须将文件扩展名设为.jsp而不是.jspf
或者您可以使用<%@ include file="...." %>
代替jsp:include ..
答案 1 :(得分:0)