简体   繁体   English

在iframe中,Jsps无法加载

[英]Inside an iframe, Jsps are not loading

I am doing an Eclipse dynamic web project in which I have to use iframe. 我正在做一个Eclipse动态Web项目,其中必须使用iframe。 The structure as below ... In JSP iframe src, Page (html / Jsp) are not loading 结构如下... 在JSP iframe src中,页面(html / Jsp)未加载

As you can see in the picture, jsps/html is present..to access in home.jsp, I am using the below lines: 如您在图片中所看到的,存在jsps / html ..以便在home.jsp中进行访问,我使用了以下几行:

<iframe name="menuframe" src="<%=request.getContextPath()%>\jsp\NewFile.html" style="height: 938px; width: 196px; margin-left: 20px "></iframe>
<iframe name="detailframe" src="../detailframe.jsp" style="width: 655px; height: 938px; margin-left: 20px "></iframe>

What makes me strange is, nothing is working when I have tried with all possible combinations. 让我感到奇怪的是,当我尝试所有可能的组合时,没有任何效果。

Kindly suggest me along with the error 请提示我错误

FYI, I have tried with ${pageContext.request} too but finally no use. 仅供参考,我也尝试使用${pageContext.request}但最终没有用。

This happens when you are viewing this on an incompatible web browser. 在不兼容的Web浏览器上查看时会发生这种情况。 Do check the supported browser and hacks for incompatible browsers. 请检查支持的浏览器,并检查不兼容的浏览器。

Also there is a concept of cross domains access in iFrame. 在iFrame中也有一个跨域访问的概念。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM