怎么能jsp传到tomcat上无端口号
本来是要输入http://localhost:8080
怎么能显示成http://localhost,就可以显示jsp的页面?

解决方案 »

  1.   

    修改 F:\tomcat\apache-tomcat-5.5.23\conf\server.xml
    <Connector port="8080" maxHttpHeaderSize="8192"
                   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                   enableLookups="false" redirectPort="8443" acceptCount="100"
                   connectionTimeout="20000" disableUploadTimeout="true" />
    修改成80
    <Connector port="80" maxHttpHeaderSize="8192"
                   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                   enableLookups="false" redirectPort="8443" acceptCount="100"
                   connectionTimeout="20000" disableUploadTimeout="true" />
      

  2.   

    怎么能显示成http://localhost,就可以显示jsp的页面?
           
    <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
    后面加上
      <Context path="" docBase="你的应用名" debug="0" reloadable="true" /> 
      

  3.   

    呵呵,暗略已经把问题的可能有的答案一股脑的回答了~~不过好像还有一点点可以回答 ^^ 你的jsp要符合welcome-file的设置。tomcat默认的是index.html、index.htm、index.jsp。在tomcat的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>
      

  4.   

    lastsweetop 
    你说的方法很好,也可以成功,
    但是我还有个问题.我还要用asp的话.那怎么办.
    好像说是要把apache和tomcat整合
    谁知道apache2.2+tomcat5.5
    要下什么版本的JK