关于struts2框架中的“There is no Action mapped for namespace /a and action name toform.”这个错误的原因
这个问题的造成原因是:struts.xml配置文件中的package标签的namespace属性'/b'和在网址栏输入'http://shna4w8081nqyz5:8080/Struts2/a/toform.action'的不同,正确的输入是'http://shna4w8081nqyz5:8080/Struts2/b/toform.action'这样。在struts.xml文件中的配置
原创
2018-01-17 11:22:21 ·
157 阅读 ·
0 评论