次のようなiframeを持つホームページがあります
<iframe id="contentframe" name="contentframe" src="Report.html"
style="height: 99%; width: 100%;" frameborder="0" >
</iframe>
そして、私は次のような例外ハンドラを持っています
@ExceptionHandler(Exception.class)
public ModelAndView handleAllException(Exception ex) {
ModelAndView mv=new ModelAndView("Login");
mv.addObject("loginForm", new LoginForm());
mv.addObject("loginMsg", "No Database Connection");
return mv;
}
Report.html
しかし、iframe 内のロードのリクエストの処理中に db 接続が失われた場合Login.jsp
、ページ全体として iframe の外側にロードする必要があります。
どんな助けでも大歓迎です。