我是靠谱客的博主 粗犷麦片,这篇文章主要介绍java.lang.NoSuchMethodException: Action[/role] does not contain specified method (check logs)紧急求救~,现在分享给大家,希望可以做个参考。

 前台代码:

window.location.href="<%=path%>/role.do?method=addRole";

配置文件:

<action 
   attribute="roleForm"
      name="roleForm"
      path="/role"
      scope="request"
      type="com.webravor.controller.config.action.RoleAction"
      parameter="method"
      >
    <forward name="add_suc" path="/role.do?method=findAll"></forward>
 <forward name="add_fai" path="/role.do?method=findAll"></forward>
 <forward name="update_fail" path="/role.do?method=findAll"></forward>
 <forward name="update_success" path="/role.do?method=findAll"></forward>
 <!-- 普通角色修改成功 -->
 <forward name="updsuc" path="/jsp/config/showRole.jsp"></forward>
 <forward name="allRole" path="/jsp/config/allRole.jsp"></forward>
 <forward name="del" path="/role.do?method=findAll"></forward>
 <forward name="addrole" path="/jsp/config/addRole.jsp"></forward>

 

Action文件:

 public ActionForward addRole(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse response) {
  
  System.out.println("------------");
  
  return mapping.findForward("addrole");
 }

 

 

我找了好久,不知道什么原因  求各位大神帮忙啊 。。。。

最后

以上就是粗犷麦片最近收集整理的关于java.lang.NoSuchMethodException: Action[/role] does not contain specified method (check logs)紧急求救~的全部内容,更多相关java.lang.NoSuchMethodException:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(126)

评论列表共有 0 条评论

立即
投稿
返回
顶部