您的位置:首页 > 大数据 > 人工智能

解决The file XXX can not be found.Please check the location and try again!

2010-08-07 00:00 676 查看


起因:在一个页面上使用了简单框架,示例如下

Java代码



<%@ page contentType="text/html; charset=gb2312" language="java"%>

<html>

<head>

<title>

test

</title>

</head>

<frameset cols="150,*" >

<frame name="left" src="<%=request.getContextPath()%>/a.jsp" target="right" frameborder="0" >

<frame name="right" src="<%=request.getContextPath()%>/b.jsp" frameborder="0" >

</frameset>

</html>

<%@ page contentType="text/html; charset=gb2312" language="java"%>
<html>
<head>
<title>
test
</title>
</head>
<frameset cols="150,*" >
<frame name="left" src="<%=request.getContextPath()%>/a.jsp" target="right" frameborder="0" >
<frame name="right" src="<%=request.getContextPath()%>/b.jsp" frameborder="0" >
</frameset>
</html>


因为该页面所指向的页面路径不对,便进行手动修改,修改时却出现了很烦的问题,输入一个字就弹出一个提示框“the file XXX can not be found.Please check the location and try again.”

简直让工作无法进行,google了一下,网上说是平台的原因,反正不清楚,解决方案如下:

关闭它的jsp图形模式。
打开MyEclipse 工具栏Window->Preference->General->Editors->File Associations,选中JPS,把对应的Associated editors中的MyEclipse Visual JSP Editor移除;

回到编辑器界面,右键点击要打开的页面,选择Open with->MyEclipse JSP Editors即可。

再次修改frame src的路径,再也没有烦人的对话框弹出了。
http://qianzui.javaeye.com/blog/543057
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐