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

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

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

如下图:

struts文件异常Included file cannot be found

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

struts文件异常Included file cannot be found

这样基本就好了

相关文章: