1.
<script>
  document.loaction="http://xxx.com/b.php";
</script>2.
<%
response.sendRedirect("http://xxx.com/b.php");
%>

解决方案 »

  1.   

    <jsp:forward page="http://xxx.com/b.php"/>
      

  2.   

    <script>
      window.loaction="http://xxx.com/b.php";
    </script>
      

  3.   

    带request传送,不知道能不能传给php。呵呵。
    request.getRequestDispatcher("要跳转的页面.php").forward(request, response);
      

  4.   

    我没有写过php但我想服务器原理应该是一样的:可以这样试一试:<%
    response.sendRedirect("http://xxx.com/b.php?id=***");
    %>在用PHP中的方法来接收