在JAVA代码里怎么返回上一页?谢谢

解决方案 »

  1.   

    客户端:   
      javascript:history.back()   
      <button   name   =   "test"   value   =   "back"   onClick   =   "javacscript:history.back()">   
      就可以了!     服务端:   
      运行的是Servlet;   
      //返回页面   
      RequestDispatcher   rd   =   context.getRequestDispatcher("/url地址");   
      rd.forward(request,   response);     
      可以传递请求对象!   
        
      jsp:<jsp:forward   page="xx.jsp"/>   
      只是跳转页面。