在windows 2008中整合好了tomcat和iis,那怎么才能默认指定的首页啊
如:
这样可能执行:http://localhost/test/index.jsp
想改成:http://localhost
这样就行执行,在哪可以设置啊,

解决方案 »

  1.   

    如上 配置欢迎页web.xml文件中配置welcome-file
      

  2.   

    http://localhost/test 可以用welcome-file控制。
    http://localhost/ 可以吗?
      

  3.   

    http://localhost/ 是打开tomcat了
    必须加上工程的名字啊,要不怎么知道你访问的是那个项目啊
      

  4.   

    把项目放到 webapp下的ROOT目录下
      

  5.   

    放在 webapps\ROOT\ 下
    并修改 Tomcat 6.0\conf\web.xml 中 
    <welcome-file-list>
            <welcome-file>a.html</welcome-file>你想要默认跳转的页面
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>