我设置welcome-file-list列表如下,如果我访问http://www.51sougao.com/他会默认访问http://www.51sougao.com/classad/index.jsp
但我想访问http://www.51sougao.com/classad也默认访问http://www.51sougao.com/classad/index.jsp,但提示错误如下:找不到网页 
您要查看的网页可能已被删除、名称已被更改,或者暂时不可用。 同理我访问http://www.51sougao.com/blog的错误也是这个,不清楚怎么做,能让他指向
http://www.51sougao.com/blog/index.jsp
谢谢!<welcome-file-list>
    <welcome-file>classad/index.jsp</welcome-file>
    <welcome-file>blog/index.jsp</welcome-file>
      </welcome-file-list>

解决方案 »

  1.   

    这就不是welcome-file-list的作用了...应该是映射的作用,就是MAPPING那个...
      

  2.   

    在WEB.XML下没办法做到,它只能定义首页.
    如果你用STRUTS可以在MAPPING里面定义.
      

  3.   

    只需要这样就行了吧:
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
      

  4.   

    不好意思,好象领会错了楼主的意思,不过上面就可以使访问http://www.51sougao.com/classad时访问到http://www.51sougao.com/classad/index.jsp
      

  5.   

    这个需要重定义HTML错误信息页面,好象是404和500错误的页面