警告: No configuration found for the specified action: 'hello/sum' in namespace: '/hello'. Form action
来源:互联网 发布:做淘宝要交多少钱 编辑:程序博客网 时间:2024/05/12 06:24
2015-1-10 19:20:12 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
警告: No configuration found for the specified action: 'hello/sum' in namespace: '/hello'. Form action defaulting to 'action' attribute's literal value.
2015-1-10 19:20:13 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
struts.xml:
若要让上述警告消失,修改jsp中的form标签的属性:
警告: No configuration found for the specified action: 'hello/sum' in namespace: '/hello'. Form action defaulting to 'action' attribute's literal value.
2015-1-10 19:20:13 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
警告: No configuration found for the specified action: 'hello/sum' in namespace: '/hello'. Form action defaulting to 'action' attribute's literal value.
这里系统采用偷懒的方式,只是在package的namespace为"/hello"下面查看是否有name为“hello/sum”的action,没有,就会显示上述警告,而实际运行时,会解析action的路径来查找对应的jsp页面,所以不会影响系统运行。
原始jsp代码:
求代数和. <br> <s:form action = "hello/sum" method = "post"> <s:textfield name = "v1" label = "操作数1"/> <s:textfield name = "v2" label = "操作数2"/> <s:submit value = "求和"/> </s:form>
struts.xml:
<package name="default" namespace="/hello" extends="struts-default"><action name="test" class="com.lijie.test.HelloWorld"><result name = "success" type="dispatcher">/hello.jsp</result><result name = "positive">/positive.jsp</result><result name = "negative">/negative.jsp</result></action><action name="sum" class="com.lijie.test.FirstAction"><result name = "positive">/positive.jsp</result><result name = "negative">/negative.jsp</result></action></package>
若要让上述警告消失,修改jsp中的form标签的属性:
<s:form action = "sum" method = "post" namespace = "/hello">
这样系统可以在/hello下查找到name为sum的action,就不会出现警告信息了。
0 0
- 警告: No configuration found for the specified action: 'hello/sum' in namespace: '/hello'. Form action
- 警告: No configuration found for the specified action: 'loginPerson' in namespace: ''. Form action def
- 警告: No configuration found for the specified action: 'register' in namespace: '/jsp'. Form action de
- 警告: No configuration found for the specified action: 'upload' in namespace: ''. Form action . . .
- 出现No configuration found for the specified action: 'tokenAction' in namespace: ''. Form action 警告的原因
- No configuration found for the specified action: '/sum' in namespace: ''.Form action defaulting to '
- 警告: No configuration found for the specified action: '/sdoubleselect.jsp' in namespace: ''. Form act
- No configuration found for the specified action: 'xxx/xxx.action' in namespace: ''. Form action def
- 警告: No configuration found for the specified action: '/myNameSpace/login.action' in namespace: ''. F
- 警告: No configuration found for the specified action: 'login.action' in namespace: '/'.
- 警告: No configuration found for the specified action: 'login.action' in namespace: '/'.
- No configuration found for the specified action: '/login.action' in namespace: '/myNameSpace'. Form
- No configuration found for the specified action: '/myNameSpace/login.action' in namespace: ''. Form
- No configuration found for the specified action: '' in namespace: ''. Form action defaulting to 'act
- No configuration found for the specified action: ''in namespace: '/'
- No configuration found for the specified action: '/' in namespace
- No configuration found for the specified action: 'user' in namespace: ''
- 警告: No configuration found for the specified action: 'ShowMessage' in namespace:
- nyoj 287 Radar 【区间选点】
- 为Android安装BusyBox
- 汇总(之四):交叉编译工具链arm-none-linux-gnueabi-, Qt交叉编译安装和移植,Qt桌面版编译安装,QTcreator安装和配置
- 使用Promises
- java request获取IP地址
- 警告: No configuration found for the specified action: 'hello/sum' in namespace: '/hello'. Form action
- jersey接收对象参数到服务器
- Beaglebone black SD卡安装后,扩大rootfs分区大小的解决办法
- 关于libsvm的Java和C版本的运算结果不一致的问题
- 【.NET机房重构】——再看抽象工厂加反射实现登录
- 黑马程序员 JAVA基础(三)
- cocos2dx3.2开发 RPG《Flighting》(七)回到战斗场景,更新角色的叠放次序
- AngularJS自定义指令标签
- 助教:C语言问题收集--scanf()的一些常见问题;switch语句;for循环的执行顺序