本帖最后由 hyqinger 于 2012-12-29 20:24:01 编辑

解决方案 »

  1.   

    如果你想打开的默认路径http://localhost:8080/ui/  那么你可以tomcat conf\Catalina\localhost路径下,新建一个xml文件,把下面的代码粘贴上,文件名ui.xml<?xml version='1.0' encoding='utf-8'?>
    <Context workDir="work\Catalina\localhost\ui" path="/ui" docBase="项目ui本地路径" useNaming="false" reloadable="true">
    </Context>ps:ui就是你默认想直接登录的页面。
      

  2.   

    这是我在公司用到的技术,不知道合适ssh吗,希望对你有参考价值
      

  3.   

    我又个很简单的方法<body>
       <form action="_userlist.do" method="post" id="pageForm"></form>
       <center>
       <table height="100%" align="center">
       <tr>
       <td valign="middle"><img alt="Please waiting...." src='images/loading.gif' border='0'id="singlePhoto" />Please waiting ...</td>
       </tr>
       </table>
        </center>
      </body>
      <script type="text/javascript">
    $.post("_checkSession.do",function(data){
    if (data != null)
    {
    document.getElementById("pageForm").submit();
    }

    });
      </script>
      

  4.   

    web.xml里面设置一个默认打开页面init.jsp,再在init.jsp页面里面初始自动加载index.action
    <meta http-equiv="refresh" content="0;url=index.action">
      

  5.   

    不懂<meta http-equiv="refresh" content="0;url=index.action">加在哪里