Eclipse-lomboz 开发 jsp/web 项目  创建一个servelet程序 后 该项目中所有的jsp 程序 运行后都抱 404错误打开项目的 WEB-INF文件夹下的 web.xml 文件发现发生如下变化!原文件:<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
DBTest</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-list>
</web-app>变化后文件:<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
DBTest</display-name>
<servlet>
<description>
</description>
<display-name>
work</display-name>
<servlet-name>work</servlet-name>
<servlet-class>
cn.orc.kobe.work</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>work</servlet-name>
<url-pattern>/work</url-pattern>
</servlet-mapping>
<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-list>
</web-app>这是什么原因 还有我在把 web.xml 修改成和原文件一样!(其实就是删除中间的那几行!从<servlet>到</servlet-mapping>) 那么我的那些jsp 文件可以正常运行!