在线等!2处错误!麻烦各位了!
jsp<%@ include page=“top.jsp”%>报错
top.jsp这个文件在不在,在哪个目录下,放在一个目录下看看
<%@ include file="top.jsp"%>
或者换成
<jsp:include page="top.jsp"/>
写错了吧
应该下面2种
<jsp:include page="top.jsp"/>
<%@ include file="top.jsp"%>
<%@ include file=”relativeURI”%> 是在翻译阶段执行
<jsp:include page=”relativeURI” flush=”true” /> 在请求处理阶段执行
```
<jsp:include page="" flush="" />标签导入一个重用文件的时候,这个文件是经过编译的,通俗点说就是附加这个要导入文件经过编译后的效果,所以可以含有与当前jsp程序中重复的内容,因为在附加过来之前就会被解析掉。
动态include:
静态include: <%@ include file="top.jsp"%>
百度是最好的老师。
动。
<%@ include file="top.jsp"%>