There is no Action mapped for namespace [/] and action name [] associated with context path [/struts]. - [unknown location]
在最初配置struts2环境时,按照教程配置,却总提示这个问题。并且进行一下步骤的检查:
1.检查struts.xml,拼写是否正确,且所放位置确定在src目录下
2.其次,在struts.xml中action 配置,class路径是否正确。
3.在启动eclipse访问时,注意url应为全路径,指定到具体的jsp。
4.最好把加载的包lib放到web-Inf下面的lib下面。