首页文件代码:<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<script type="text/javascript">
window.location.href="/gm/toLogin.html";
</script>如何吧这个转向去了 然后直接吧用到的首页 作为首页 我Q405527089 RMB求解决

解决方案 »

  1.   

    不是很明白你的意思 意思是当出现异常后跳到这个页面  然后在从这个页面跳到另外一个页面?
    在web.xml里边配
    <error-page>
      <exception-type>java.lange.Throwable</exception-type>
      <location>/gm/toLogin.html</location>
    </error-page>
    试试
      

  2.   

    window.location.href="/gm/toLogin.html"; 双引号里换成你想要的地址不就行了么?
      

  3.   

    写个方法
    function dd(){
    window.location.href="/gm/toLogin.html";
    }
    <body onload="dd"/>body调用自动跳到你要的页面
      

  4.   

    这是我的主页啊  主页文件就是我上面发的这个源码。我的域名是 www.xf21.net  打开之后跳转到http://www.xf21.net/gm/toLogin.html  我的意思是 让域名打开 就是http://www.xf21.net/gm/toLogin.html 这个页面的内容 吧跳转去掉。 因为这样 域名都没关键词啊 对SEO不好
      

  5.   

    是这个吗?  <welcome-file-list>
        <welcome-file>index.html</welcome-file>
      </welcome-file-list>我看你说的好像是这个意思。。