struts2配置有命名空间的Action: 解决No configuration found for the specified action错误
2010-11-21 13:52
369 查看
<!--struts2配置--> <package name="default" namespace="/login" extends="struts-default"> <action name="myLogin" class="test.action.LoginAction"> <result name="input">/index.jsp</result> <result name="success">/welcome.jsp</result> </action> </package> <!--前台--> <s:form action="myLogin" method="post" namespace="/login" > <s:textfield name="username" label="login.username"></s:textfield> <s:textfield name="password" label="login.password"></s:textfield> <s:submit label="login.submit"></s:submit> </s:form> 不需要添加.action后缀
相关文章推荐
- struts2 笔记01 登录、常用配置参数、Action访问Servlet API 和设置Action中对象的值、命名空间和乱码处理、Action中包含多个方法如何调用
- Struts2:配置Action——包和命名空间
- Struts2 Action中命名空间(namespace)作用
- struts2 2.5.5 中出现404 异常,没有对应的命名空间,或者没有对应的Action(套路)
- struts2 命名空间---action的寻找规则
- Struts2 配置url重写 404 找不到action解决方法
- Struts2的配置中:Could not find action or result 问题的解决方法
- Struts2之命名空间与Action的三种创建方式
- Struts2配置默认action(首页)、配置404防止请求出错问题解决
- 配置Action(一)——包和命名空间
- struts2 action从一个命名空间跳到另一个命名空间
- action中redirectAction到另一个命名空间中的action该如何配置
- 关于struts2使用命名空间后action路径问题
- struts2常见配置解决错误There is no mapped for namespace[/] and action name
- 3.6.1: 配置Action---包和命名空间
- Struts2的配置中:Could not find action or result 问题的解决方法
- 配置Action(一)——包和命名空间
- Struts2的配置中:Could not find action or result 问题的解决方法
- Struts2项目的运行流程 配置文件 包配置 命名空间
- struts2点击action请求url重复命名空间