`

Spring3MVC提交弹出窗口表单后,自动返回父窗口的列表页面

阅读更多

方法:

 

[html] view plaincopy
  1. @RequestMapping(value = "/save")  
  2.     public String save(HttpServletResponse response){  
  3.                 // 跳出框架弹窗口iFrame,直接返回列表页面  
  4.         PrintWriter out = response.getWriter();  
  5.         out.print("<script>window.parent.location.href='list';</script>");  
  6.         out.flush();  
  7. }  

 

其它问题:

        问题:在弹出窗口中,通过单击链接请求数据,并在父窗口中显示结果数据?

        解决:在弹出窗口链接属性中使用参数”target“即可解决!

 

[html] view plaincopy
  1. <a href="equ/list" class="button" target="_parent" >返回列表</a>  
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics