I cloned the GithHUb struts-example https://github.com/apache/struts-examples.git <https://github.com/apache/struts-examples.git>
> > Probably because a browser is requesting "/" to check something and as there > is no action named "" you see the error. > ?? localhost:8080/basic-strust/index.action is a URL for the action named index, it hasn’t action class and in the struts.xml we have <package name="basicstruts2" extends="struts-default"> <action name="index"> <result>/index.jsp</result> </action> </package> so as it’s said in the step 6 of the tutorial This minimal Struts 2 configuration file tells the framework that if the URL ends in index.action to redirect the browser to index.jsp. > but "index.action" != "/" that's why you see the error > > And please be aware that in classless configuration as above, a default > action class is used and in this case it'll be ActionSupport [1]. That is the info that appears in the tutorial ... 2017-04-17 11:16:01,084 DEBUG [qtp1723848804-22] xwork2.DefaultActionProxy (DefaultActionProxy.java:89) - Creating an DefaultActionProxy for namespace [/] and action name [index] > Aso please be aware that only with the Convention plugin you will get > automatic "index" action handling [2] > > [1] > https://github.com/apache/struts/blob/master/core/src/main/resources/struts-default.xml#L391 > > <https://github.com/apache/struts/blob/master/core/src/main/resources/struts-default.xml#L391> > [2] https://struts.apache.org/plugins/convention/#introduction > <https://struts.apache.org/plugins/convention/#introduction> > You don’t use the plugin convention in this example I don’t understand