我在search_result.jsp中调用pageman.jsp:search_result.jsp中的代码如下:
<%@ include file="back_manage/pageman.jsp" %>
<%@ include file="../back_manage/pageman.jsp" %>
<%@ include file="/jsp15/back_manage/pageman.jsp" %>
都是错误,无法执行,请教高手,该怎么写?
分享到:
------解决方案-------------------- 直接用<%@include file="pageman.jsp"%>试下 ------解决方案-------------------- @include 下的路径为你站点的根目录,比如:http://localhost:8080/jsp15
此时你的网站根路径应该是jsp15吧,那么你因该这样引用上述jsp文件
<%@ include file="/WebRoot/back_manage/pageman.jsp" %> //绝对路径写法
<%@ include file="../../back_manage/pageman.jsp" %> //相对路径写法