index.jsp 文件放到 /htdoc/  下即可.

解决方案 »

  1.   

    把tomcat欠装在apache下然后把目标显示**.jsp页放到htdoc下就可以了(在整合的过程中需要一个文件mod...,这个文件可是太好找)还有一个简单的方法就是在你的htdoc下放一个跳转的页 加端口8080跳到tomcat下就可以了
      

  2.   

    web.xml里在<welcome-list>标签中加一个首页的相对路径,具体格式看原来的例子吧
      

  3.   

    我用的是apache+weblogic,不是tomcat。
    我好像听别人说是只要配置apache就可以的了,是这样的嘛?又怎么配呢?
      

  4.   

    我看到apache下面好象没有htdoc这个目录嘛
      

  5.   

    to rootcn(沙砾):
    我放到htdoc这个目录下面,它怎么会转到index.jsp这个页面阿?在哪里设置的?
      

  6.   

    APACHE一般的配置文件有:http.conf  srm.conf   access.conf  
    我的版本较老您参考一下吧!
    /usr/local/apache/conf/目录下的http.conf文件中的内容的“DocumentRoot /home/*”(其中*为您的目录)
    如果您想让用户使用CGI程序,不妨修改“ScriptAlias/cgi-bin/ "/home/username/cgi.bin"”
    这里username是用户名字。另外"Serverroot Mypath"可以设置Mypath为顶级目录,错误信息,服务器配置,日志等文件。
    “Timeout *”可设置连接失效时间。
      

  7.   

    to guojian_ren(陌路强人):
    我apache是配置成功的了,也可以访问,就是想让访问能简便点,谢谢你的意见
      

  8.   

    改一下Apache2/conf/httpd.conf文件的这三个地方.
    ----------
    DocumentRoot "C:/Apache2/htdocs"
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory><Directory "C:/Apache2/htdocs">
      

  9.   

    我是用linux自带的apache,好像找不到htdoc这个目录,我用/var/www/html好像不行,该怎么设置呢?
      

  10.   

    google了一下, 可能是
    /etc/httpd/conf/httpd.conf
      

  11.   

    这个文件我知道,因为我是用linxu自带的apache,没有htdoc这个目录,我把index.jsp放到/var/www/html下面,我改成
    DocumentRoot "/var/www/html"
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory><Directory "/var/www/html">
    好像还是不行
      

  12.   

    #重启动apache没?#要做以下配置,不然不能解析jsp
    JkMount *.jsp worker1
    JkMount *.do worker1
    JkMount /servlet/* worker1#设置开始文件
    DirectoryIndex index.html index.html.var index.htm index.php index.jsp
      

  13.   

    #如果上面都做了还没用,根据配置文档的提示
    ----------
    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "/var/www/html/"
    #你可以尝试加一个
    alias / "/var/www/html/"
      

  14.   

    to cm4ever(小P)(请帮忙推荐开源项目管理软件, 谢谢!) :
    要哭了,全部试过了,就是没效果。
      

  15.   

    系统是win xp sp2 + Apache2 + tomcat5.0.28先改这两个
    DocumentRoot "/var/www/html"
    <Directory "/var/www/html">结果把.jsp的内容给直接当文本文件输出了......加上(sorry, 上面给的少了/)
    JkMount /*.jsp worker1    
    JkMount /*.do worker1     
    JkMount /servlet/* worker1结果显示了tomcat/webapps/ROOT/index.jsp
    ......呃,这是jk_model的功能之一,看看有没有办法避开.keep trying
      

  16.   

    我加了JkMount好像就出错哦
    Starting httpd: Syntax error on line 282 of /etc/httpd/conf/httpd.conf:
    Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration
    [FAILED]
    这是怎么回事?
      

  17.   

    我觉得我是不是愚蠢了点,其实可以用页面跳转的方式来做.配置用原来的, 一点都不改.删除C:/Apache2/htdocs/下所有文件(移走也可),添加一个文件index.htm,内容为<script>self.location.href='/MyWebApp/index.jsp'</script>
      

  18.   

    但是我的index.htm文件放哪里呢?我用linux自带的apache没有htdocs目录的