会提示:fragment "head.action" was not found at expected path /test/WEB-INF/page/fore/head.action
虽然项目跑起来没有问题,但这个提示很郁闷,请问怎么去掉这个错误提示?
...全文
36614打赏收藏
关于myeclipse8.5使用jsp:include提示错误
myeclipse8.5使用jsp:include提示错误 会提示:fragment "head.action" was not found at expected path /test/WEB-INF/page/fore/head.action 虽然项目跑起来没有问题,但这个提示很郁闷,请问怎么去掉这个错误提示?
会提示:fragment "head.action" was not found at expected path /tes……
[/Quote]
我也遇见这个问题,不知道怎么处理,的的是如下:
<jsp:include page="/gnxw/gnxw.html" flush="true"></jsp:include>
这个页面是动态生成的,运行没用问题,就是在写代码时报文件找不到!肯定找不到,不运行就没有。
会提示:fragment "head.action" was not found at expected path /test/WEB-INF/page/fore/head.action
虽然项目跑起来没有问题,……
[/Quote]
用绝对路径啊,如
<jsp:include page="/head.action"></jsp:include>
会提示:fragment "head.action" was not found at expected path /test/WEB-INF/page/fore/……
[/Quote]
一定不是路径问题,都说了能正常运行,但myeclipse不能正常识别struts路径,用“/head.action”一样会提示这个错误,不过提示成了WEBROOT目录了
这个应该是myeclipse的验证问题的,
再次声明路径一定没有错误,再tomcat5,6都测试过,绝对没有问题,只是提示出错而已