gpt4 book ai didi

eclipse webapp欢迎文件显示错误

转载 作者:行者123 更新时间:2023-11-28 23:29:23 25 4
gpt4 key购买 nike

我是 eclipse 的新手,在开始一个新的 webapp 时遇到了困难。index.jsp 不显示。

enter image description here

web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">

<display-name>PizzaOrderApp</display-name>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

我已经尝试过 http://localhost:8080/PizzaOrderApp/index.jsphttp://localhost:8080/PizzaOrderApp/jsp/index.jsp

删除读取 tomcat 服务器后:

enter image description here

最佳答案

您是否尝试过将 .jsp 文件直接放在 WebContent 文件夹中,而不是为 JSP 页面创建一个文件夹?

关于eclipse webapp欢迎文件显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32583378/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com