错误:<Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.
内嵌错误:
Unable to load configuration. - file:/E:/myeclipse/workspace/prpall/webapp/WEB-INF/classes/struts.xml
内嵌错误:
Open quote is expected for attribute “file“ associated with an element type “include“. - file:/E:/myeclipse/workspace/prpall/webapp/WEB-INF/classes/struts.xml:128:16
内嵌错误:
内嵌错误:
Unable to load configuration. - file:/E:/myeclipse/workspace/prpall/webapp/WEB-INF/classes/struts.xml
内嵌错误:
Open quote is expected for attribute “file“ associated with an element type “include“. - file:/E:/myeclipse/workspace/prpall/webapp/WEB-INF/classes/struts.xml:128:16
内嵌错误:
Open quote is expected for attribute “file“ associated with an element type “include“.
解决办法:此处主要是因为struts.xml文件在引入文件时,或格式问题,或标签问题,经检查自己的struts.xml配置后,发现没有用双引号对要include的文件进行引用,故对要include的文件加上双引号,问题解决
本文解决了Struts2中因struts.xml配置错误导致的问题,具体表现为未能正确使用双引号来引用include文件,通过修正该错误实现了Struts2框架的正常运行。
1万+

被折叠的 条评论
为什么被折叠?



