2010-12-20 79 views
1

我的應用程序由少數iframe組成。在Spring MVC中有沒有辦法重定向到父頁面而不是當前的iframe?例如,在JavaScript中,我們可以執行parent.window.location以在父代中加載頁面,而不是使用只會在iframe中加載的window.location。parent.window.location從spring mvc modelandview重定向

以下視圖負載login.go在目前的iframe,但我想在整個頁面(父)所顯示的login.go

return new ModelAndView(new RedirectView("/login.go", false, true, true)); 

任何想法請..

回答

2

這當然是另一個原因爲什麼frames are evil.

不可能在不使用JavaScript的情況下突破框架。