楼上的大哥,是哪个目录下的web.xml,谢谢了!

解决方案 »

  1.   

    把root目錄下的index.jsp的內容改為<%
    response.sendRedirect("http://xxx.xxx.xxx.xxx/roo/abc/xxx.jsp");
    %>
      

  2.   

    在conf/server.xml文件尾部</host>前添加<Context path="/abc" docBase="F:\myfiles\abc" debug="0" reloadable="true">
    </Context>
      

  3.   

    Tomcat_Home\conf\web.xml中找到
    <welcome-file-list>
        ******
    </welcome-file-list>
    在中间添加:
    <welcome-file>login.jsp</welcome-file>
      

  4.   

    呵呵,你说的是不要端口就能显示某一页面的话改server.xml中的8080为80(注意端口冲突),如果要定制欢迎页面的话(首先显示的页面)就修改web.xml中的<welcome-file>login.jsp</welcome-file>
      

  5.   

    谢谢各位,我按Tomcat_Home\conf\web.xml中找到
    <welcome-file-list>
        ******
    </welcome-file-list>
    在中间添加:
    <welcome-file>login.jsp</welcome-file>
    后,页面的链接跑到ROOT目录下去找了,肯定没有这个文件,我的login后页面在ROOT的abc目录下,该怎么办啊,还应该设置哪里?
      

  6.   

    可以了,就按下面的方法,不过斜杠是/,谢谢各位了在conf/server.xml文件尾部</host>前添加<Context path="/abc" docBase="F:\myfiles\abc" debug="0" reloadable="true">
    </Context>