Struts Hello world example : There is no Action mapped for namespace [/] and action name error

前端 未结 7 1640
小蘑菇
小蘑菇 2020-12-16 17:13

i am absolute beginner to Struts2. I am tying to follow tutorials on struts web site. i followed this tutorial. i have some trouble with it. i created dynamic web project on

相关标签:
7条回答
  • 2020-12-16 18:06

    The struts.xml configuration file needs to be on the classpath (as opposed to in WEB-INF).

    The linked tutorial assumes a Maven build and states the struts.xml file should go in src/main/resources, which will be included in the classpath in Maven builds. Since you're ignoring that part, you'll likely want to put it in the root of your source directory.

    0 讨论(0)
提交回复
热议问题