【发布时间】:2015-03-17 04:18:54
【问题描述】:
您好,我正在尝试将我在 Eclipse 中的动态项目的默认起始页从 index.jsp 更改为 welcome.jsp。我已经浏览了网络上的一些答案,并相应地更改了欢迎文件列表,但仍然无法正常工作。
我的 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>Decryption</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
**<welcome-file>welcome.jsp</welcome-file>**
</welcome-file-list>
</web-app>
我已经编辑了欢迎文件列表,并在其中添加了<welcome-file>welcome.jsp</welcome-file>。但它仍然无法正常工作。任何帮助将不胜感激。
【问题讨论】: