怎样设置才能不跳转呢?

解决方案 »

  1.   

    在tomcat4.1\conf的web.xml里面
    设置的。<welcome-file-list>
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
      

  2.   

    不是这个意思哦我输入http://www.xxx.com,TOMCAT直接跳到了http://www.xxx.com/index.jsp
    我不希望跳
      

  3.   

    那你就看看你的web.xml里有没有设置,如果有去掉就行了啊...
    <welcome-file-list> 
            <welcome-file>index.html </welcome-file> 
            <welcome-file>index.htm </welcome-file> 
            <welcome-file>index.jsp </welcome-file> 
    </welcome-file-list>
      

  4.   


    只去掉
    <welcome-file>index.jsp</welcome-file>
    就可以了
      

  5.   

    不是这个意思哦 我输入http://www.xxx.com,TOMCAT直接跳到了http://www.xxx.com/index.jsp 
    我不希望跳
      

  6.   

    就是去掉<welcome-file>index.jsp </welcome-file> 这句话,就OK了。
      

  7.   

    去掉index.jsp
    访问http://www.xxx.com,就访问不到了
    没有权限查看
      

  8.   


    一定要有个welcome file。你看着办吧。
      

  9.   

    如果去掉了welcome-file
    The requested resource (/) is not available.
      

  10.   

    那怎么设置呢?我在IE输入http://www.xxx.com,直接跳到了http://www.xxx.com/index.jsp 
    我不希望跳
      

  11.   

    希望地址栏仍显示http://www.xxx.com
      

  12.   

    希望地址栏仍显示http://www.xxx.com
      

  13.   

    希望地址栏仍显示http://www.xxx.com