还是用这个吧:
我刚试验完,好用的:
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>

解决方案 »

  1.   

    我想也是用这个!
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
      </welcome-file-list>
      

  2.   

    /*URL隐藏转发!*/
      不隐藏路径URL转发:例如:http://b.com/指向http://a.com/xxx/(任意目录);在浏览器地址栏中打入http://b.com/连接后地址栏会显示真正的地址http://a.com/xxx/ 。
       
      隐藏路径的URL转发:例如:http://b.com/指向http://a.com/xxx/(任意目录);在浏览器地址栏中打入http://b.com/连接后地址栏显示的还是http://b.com/,但实际显示的是http://a.com/xxx/的内容。 
     
      

  3.   


    在web.xml里面加上
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
      </welcome-file-list>