不清楚你指的是,实际是http://localhost:7001/mywar/login.jsp,你是否是希望只要键入http://localhost:7001/,还是键入http://localhost:7001/直接跳到http://localhost:7001/mywar/login.jsp?

解决方案 »

  1.   

    在console的server的connection里设置一个default app,比如说设置为mywar
    然后在你的default app中设置一下你的web.xml,加上下边的语句
    <welcome-file-list>
        <welcome-file>login.jsp</welcome-file>
      </welcome-file-list>
      

  2.   

    有个默认的欢迎页面,修改web.xml就可以。
      

  3.   

    mingjob(小一号):我用的是weblogic8 在console的server的connection里没发现有设置一个default app的地方!
    设置
    <welcome-file-list>
        <welcome-file>login.jsp</welcome-file>
      </welcome-file-list>
    只能在输入http://localhost:7001/mywar/后回车才去寻找这个默认的主页login.jsp
    如果输入http://localhost:7001/后回车她就到了weblogic里自带的那个index.htm里去了