该项目在 include 标记中找不到 jsp 文件
The project doesn't find the jsp files, in include tag
我正在做一个大学项目,在 java 网络中使用 MVC。我正在使用 eclipse photon ide、tomcat v8.0 和 postgresql。
问题是我创建了一个名为 "include" 的文件夹,并在其中插入 ide,我放了 3 个文件,"head.jsp" "navbar.jsp" 和 "scripts.jsp"。
几天前,这还是 运行 正常,但我创建了一些控制器(它们不影响 jsp 包含文件),现在我的包含不起作用!
这是初始页面的错误:
My "index" page
"menuInicial.jsp" file
"head.jsp" file
The folder strcut
menuInicial.jsp
文件已在 view
文件夹中。试试,
<%@include file="include/head.jsp"%>
我正在做一个大学项目,在 java 网络中使用 MVC。我正在使用 eclipse photon ide、tomcat v8.0 和 postgresql。 问题是我创建了一个名为 "include" 的文件夹,并在其中插入 ide,我放了 3 个文件,"head.jsp" "navbar.jsp" 和 "scripts.jsp"。 几天前,这还是 运行 正常,但我创建了一些控制器(它们不影响 jsp 包含文件),现在我的包含不起作用!
这是初始页面的错误:
My "index" page
"menuInicial.jsp" file
"head.jsp" file
The folder strcut
menuInicial.jsp
文件已在 view
文件夹中。试试,
<%@include file="include/head.jsp"%>