1

I use struts2-convention-plugin and struts2-config-browser-plugin in struts2, if i change the default struts.xml path in web.xml:

<filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    <init-param> 
        <param-name>config</param-name>
        <param-value>struts-default.xml,struts-plugin.xml,struts/struts.xml</param-value> 
    </init-param> 
 </filter>

they cannot work anymore, why?

Roman C
  • 49,761
  • 33
  • 66
  • 176
Tardis Xu
  • 1,161
  • 2
  • 7
  • 9

1 Answers1

0

struts/struts.xml is used to locate the Struts configuration file, but it cannot open it because it doesn't exist. Use struts.xml instead and put it onto classpath.

Roman C
  • 49,761
  • 33
  • 66
  • 176