天天看點

struts檔案異常Included file cannot be found

在使用多個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

這樣基本就好了

本文轉自左正部落格園部落格,原文連結:http://www.cnblogs.com/soundcode/p/6365979.html,如需轉載請自行聯系原作者