我又试了几下,好像是jbuilder9.0中的location.href指令都不能用的,因为我在jsp页面中试了,也不能转向,但在jcreator中完全可以转向,怎么会这样啊,是不是要设置什么东西?

解决方案 »

  1.   

    试着用其它的方式看看<script>location.replace('http://www.csdn.net')</script>
      

  2.   

    或者<meta http-equiv="Refresh" content="1; url=http://www.csdn.net"> 
      

  3.   

    使用location.replace可以实现转向但不能后退,不方便,能解释下为什么在jbuilder中不能使用location.href吗
      

  4.   

    用这样的呢?
    <script>top.location.href='Page.jsp'</script>
      

  5.   

    可以啦,原来用location.href='jsp1.jsp'就可以了,真是的,怪我太急躁,没多试几种哈哈,thank you 啦