我有一个像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中的Login.jsp
加载.i希望它在整个页面的iframe之外加载。
感谢任何帮助。