InvalidPathException: No action config found for the specified url.
来源:互联网 发布:imds国际材料数据系统 编辑:程序博客网 时间:2024/05/06 22:44
这个是struts1报的错,原因是配置多文件配置不正确
正确的配置是
web.xml
<servlet><servlet-name>action</servlet-name><servlet-class>org.g4studio.core.web.BaseActionServlet</servlet-class><init-param><param-name>config</param-name><param-value>/WEB-INF/struts-config.xml</param-value></init-param><init-param><param-name>config/zjys</param-name><param-value>/WEB-INF/struts-config-zjys.xml</param-value></init-param><init-param><param-name>debug</param-name><param-value>2</param-value></init-param><load-on-startup>2</load-on-startup></servlet>
struts-config-zjys.xmlstruts-config-zjys.xml<struts-config><!-- 配置ActionFormBean --><form-beans><!-- 公共Form --><form-bean name="commonActionForm" type="org.g4studio.core.web.CommonActionForm" /></form-beans><!-- Action映射 --><action-mappings type="org.g4studio.core.mvc.xstruts.action.ActionMapping"><action name="commonActionForm" path="/wtlb" scope="request"parameter="reqCode" type="com.neusoft.zjys.wtlb.web.WTLBAction"><forward name="wtlb1View" path="/wtlb/wtlb.jsp" /></action></action-mappings></struts-config>路径的写法
zjys/wtlb.do?reqCode=方法名
文件路径结构图
- InvalidPathException: No action config found for the specified url.
- InvalidPathException: No action config found for the specified url.
- Struts“No action config found for the specified url.”错误,解决
- Struts1.3 HTTP Status 500 No action config found for the specified url
- No configuration found for the specified action
- No configuration found for the specified action:
- struts2: No configuration found for the specified action 找不到action
- No configuration found for the specified action: ''in namespace: '/'
- No configuration found for the specified action解决办法
- 解决:No configuration found for the specified action
- 彻底解决警告: No configuration found for the specified action
- struts2 标签 No configuration found for the specified action
- 解决:No configuration found for the specified action
- 警告: No configuration found for the specified action: 'PointAction'
- 解决:No configuration found for the specified action
- 解决:No configuration found for the specified action
- No configuration found for the specified action警告总结
- 解决:No configuration found for the specified action
- KNOW: Sort & Search
- Lucas 定理 模板
- HTML Event type
- 子数组的乘积
- jbpm4.3整合spring3.0
- InvalidPathException: No action config found for the specified url.
- 两个数据库的纠缠
- 实现double数值的精度加减乘除运算
- 我的DIY Android之旅--在(32位)ubuntu11.04编译运行Android2.3.源码
- 多线程异步TCP客户端实现
- 今天遇到的两个问题
- MFC界面画图
- 登录shell 非登录shell /etc/bash.bashrc /etc/profile ~/.bashrc ~/.profile
- 我能成为一名布道师吗?