struts常见问题:Cannot retrieve mapping for action
导读:
web.xml配置文件:
action
org.apache.struts.action.ActionServlet
application
ApplicationResources
config
/WEB-INF/struts-config.xml
debug
2
detail
2
2
action
*.do
struts-config.xml中的配置:
这里的path="/login"不能写成path="/login.do",否则会出现Cannot retrieve mapping for action错误
表单:
这里的action="login.do"可以是action="/login.do"或action="/login"或action="login"
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/daryl715/archive/2007/11/21/1896549.aspx