struts文件异常Included file cannot be found

在使用多个struts文件包含到一个主配置文件中会出现异常,以前在myeclipse10.7 和myeclipse 8.5使用struts多文件引入都没有问题,但转到myeclipse2014就会出现问题,弄了好久才解决 主要是:

1.命名规范,都是采用struts-xxx.xml文件,即以struts开头

2.file的路径不要以/开头,在其他版本是以/开头的

如下图:


在struts.xml文件中引入struts-user.xml文件


这样基本就好了

posted @ 2017-02-04 17:30  左正  阅读(393)  评论(0编辑  收藏  举报