【struts 报错】 No action config found for the specified url

1

type Exception report

message org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
    org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    k.filter.EncodingFilter.doFilter(EncodingFilter.java:14)
root cause

org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
    org.apache.struts.chain.commands.AbstractSelectAction.execute(AbstractSelectAction.java:71)
    org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
    org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
    org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    k.filter.EncodingFilter.doFilter(EncodingFilter.java:14)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.35 logs.

原因:

struts-config.xml里面的 path 是 区 分 大 小 写 !!!

过程

    <action name="userForm" path="/login" parameter="action" type="k.action.LoginAction"
            scope="request" attribute="userForm" input="index.jsp" validate="false">
        <forward name="ok" path="/WEB-INF/jsp/ok.jsp"></forward>
        <forward name="err" path="/WEB-INF/jsp/err.jsp"></forward>
        <forward name="login" path="/WEB-INF/jsp/login.jsp"></forward>
    </action>
<form action="${APP_PATH}/Login.do?action=doUserLogin" method="post">
    账号:<input type="text" name="userName" value="11哈哈"> <br>
    密码: <input type="password" name="password" value="1"> <br>
    <input type="submit" value="submit"> <br>
</form>

form的path Login 大写了

原文地址:https://www.cnblogs.com/kikyoqiang/p/12309718.html

时间: 2024-10-15 09:29:26

【struts 报错】 No action config found for the specified url的相关文章

org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.

No action config found for the specified url url路径下找不到action,原因是stuts-config.xml文件配置错误. demo的项目文件如下: 使用jsp文件夹中的login.jsp文件调用action: <%@ page language="java" contentType="text/html" pageEncoding="GBK"%> <!DOCTYPE html

vuex2 mapActions 报错 `unknown action type: xxxx`

export const setBreadCrumb = ({ dispatch }, data) => { dispatch('SET_BREADCRUMB', data) } 当调用的时候报[vuex2] mapActions 报错 `unknown action type: setBreadCrumb` 后台改成 export const setBreadCrumb = ({ commit }, data) => { commit('SET_BREADCRUMB', data) } 未报

webpack报错no postcss config...

终端里运行的错误: 查了好多资料,最后找到解决办法,改为: const webpack = require('webpack'); // const autoprefixer = require('autoprefixer'); // const values = require('postcss-modules-values'); module.exports = { devtool: 'eval-source-map', entry: __dirname + "/app/main.js&qu

C# 解决SharpSvn启动窗口报错 Unable to connect to a repository at URL &#39;svn://....&#39;

在远程机打开sharpsvn客户端测试,结果报错 Svn启动窗口报错 Unable to connect to a repository at URL 'svn://...' 咋整,我在win10我的开发环境上没报错啊, 一时间各种的想象, 昨天先是svn客户端不能再win7上运行,后来编译平台换成X86模式,sharpsvn.dll 换成x86,问题解决 .注意:必须删除原先生成的bin文件,当时我只删除了exe文件,结果还是报错,debug 模式和 Release 都要换到x86 . 接着点

flask报错:werkzeug.routing.BuildError: Could not build url for endpoint &#39;index&#39;. Did you mean &#39;single&#39; instead?

错误代码 参考:https://blog.csdn.net/qq_27468251/article/details/81359701 改为 flask报错:werkzeug.routing.BuildError: Could not build url for endpoint 'index'. Did you mean 'single' instead? 原文地址:https://www.cnblogs.com/MC-Curry/p/9748358.html

struts 报错 :Unable to load configuration. - action 的解决

初学Struts, 在idea里写Struts项目, 其实还是挺好操作的, 从官网下载min 的jar包, 然后在idea 里 新建Struts项目的时候 就可以选择用本地包来构建, ctrl shift alt s 配置项目的libraries, 等等在此不表 但是在启动tomcat的时候就遇到了很多莫名其妙的报错, 比如说报错, 找不到class, 感觉有点奇怪啊, 明明已经导入了jar 包了, 还是提示找不到包, 没办法, 只好包jar 包复制进lib 目录, 然后右键add as lib

phpize建立PHP扩展报错Cannot find config.m4.

首先进入PHP的源码安装包目录下面执行一条命令: cd /home/oldboy/tools/php-5.5.32/ext/ ./ext_skel --extname=redis 然后进入到扩展目录,可以看到如下三个文件,分别进行编辑: cd redis/ ls config.m4 redis.c php_redis.h 操作前养成备份的习惯按照顺序先编辑config.m4将 > dnl PHP_ARG_ENABLE(redis, whether to enable redis support,

Echarts报错[MODULE_MISS]&quot;echarts/config&quot; is not exists!

项目用到Echarts插件,时下比较流行的是模块化包引入,但是很悲催的是楼主用的是标签式引入,所以从官网copy来的代码总是报一个 [MODULE_MISS]"echarts/config的错误,在这里,楼主对模块化包引入并没有学习,所以此文只是提醒那些项目用了标签式引入的同学们 啰嗦一句,所谓标签式引入就是用js的标签引入在html页面中导入js文件 形如 : <script type="text/javascript" src="${cxtPath}/as

Loadrunner在场景中添加多个负载机报错:Action.c(38): Error -26488: Could not obtain information about submitted解决方法

Error -26488: Could not obtain information about submitted file "E:\.jpg": _stat32 rc=-1, errno=2 [No such file or directory]. Using an empty file 解决方法: 1.先执行一次场景,让其报错,主要是为了创建完整的C:\Users\Administrator\AppData\Local\Temp\brr_WJy.395目录下的子目录和文件 2.在