开发者

Iframe error handling in JSP

开发者 https://www.devze.com 2022-12-14 20:34 出处:网络
I have a JSP page which includes an iframe , Iframe contains the image display part & some other part, The problme is whenevr the iframe encounters an error, it gets redirected to error page (Erro

I have a JSP page which includes an iframe , Iframe contains the image display part & some other part, The problme is whenevr the iframe encounters an error, it gets redirected to error page (Error page is defined for the JSP) but not the whole page, only the iframe conained part of the page displays an error, I want the whole page to move to error page. I checked few forums but didn'开发者_Go百科t find any solution. Thanks you very much

Rohit Desai


If the contents of the iFrame are under your control you can make the a custom error page that includes logic to change the parent frame but this will only work if the page in the iFrame and the parent page are on the same domain.

0

精彩评论

暂无评论...
验证码 换一张
取 消