<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
<!--
<welcome-file-list>
<welcome-file> login.jsp </welcome-file>
</welcome-file-list>
-->
</web-app>
[color=red]如果web.xml中没有 <welcome-file-list/> 节点 那么是根据服务器如tomcat中server.xml配置文件中的配置打开的 如果加了上面的节点,则是按照login.jsp 为首页[/color]