在index.jsp里写一个自动跳转的代码不就得行了

解决方案 »

  1.   

    no 1
    你得改一下工程下面的web.xml配置,很容易的,你打开web.xml就会看明白了no 2 应该有很多种方法,一种就是和apache整合
      

  2.   

    端口绑定就可以了,也就是在index.jsp里写一个自动跳转的代码吧!
      

  3.   

    no 2
    只需要把sever.xml中得端口号8080改为默认端口80,然后重新启动tomcat就可以了
      

  4.   

    no 1
    在web.xml里配置欢迎页面的时候写login.jsp
    no 2
    在tomcat的server.xml(应该在conf文件夹下)里把原来的默认端口8080,改为80
    当然需要把你机器上原来的80端口给关掉(假如有的话)
      

  5.   

    一、web.xml中
    <welcome-file-list>
        <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>二、在tomcat目录下的conf下的server.xml中把port改成"80"
        <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="80"               minProcessors="5" maxProcessors="75"
      

  6.   

    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
             during installation -->
        <Connector 
    port="8080"               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                   enableLookups="false" redirectPort="8443" acceptCount="100"
                   debug="0" connectionTimeout="20000" 
                   disableUploadTimeout="true" />修改port为80即可,不要首先要确定80端口没有被占用