Could not locate named parameter [jack], expecting one of [name, pwd] There is no Action mapped

版权声明:博主原创转载请注明出处:https://blog.csdn.net/qq_42952331 https://blog.csdn.net/qq_42952331/article/details/84778454

博主原创转载请注明出处https://me.csdn.net/qq_42952331
ssh项目报:Could not locate named parameter [jack], expecting one of [name, pwd]
There is no Action mapped for namespace [/] and action name [staffAction_login] associated with context path [/crm].
出现该问题的原因有很多:
**1.**检查struts.xml配合文件是否配置好
错误写法:不能再路径前加classpath在这里插入图片描述

  1. 检查动作名称是否匹配表单提交名称。
  2. 对于***struts2.5***以后的版本在struts.xml中使用通配符时要注意在***action标签***中加入
    方法名1,方法名2…表示允许使用的通配符的方法名
    在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_42952331/article/details/84778454