Struts2项目中关于Struts标签的相关问题
来源:互联网 发布:黑沙女武神捏脸数据 编辑:程序博客网 时间:2024/06/05 09:26
Struts2项目中出现以下警告:虽然不影响程序得的运行,但看着很纠结~
警告: No configuration found for the specified action: '/admin_login' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
2016-11-30 9:39:23 org.apache.struts2.components.ServletUrlRenderer warn警告: No configuration found for the specified action: '/admin_login' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
原因分析:login.jspz中的Struts标签
<s:form action="/admin_login" method="post" theme="simple" >
<table border="1" align="center" cellpadding="5" cellspacing="0">
中的nanamespace=""默认为空 需修改如下
<s:form action="admin_login" method="post" theme="simple" namespace="/" >
<table border="1" align="center" cellpadding="5" cellspacing="0">
action中的“/” 得去掉,问题就解决了。
更多详解请点击:点击打开链接
0 0
- Struts2项目中关于Struts标签的相关问题
- 一个关于Struts2标签中cssClass属性的问题
- 关于struts2标签中 #parameters.XXX获取参数的问题
- 关于struts2标签中 #parameters.XXX获取参数的问题
- Struts2 中 关于s:url 标签 的使用问题
- 关于struts标签的一个小问题
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- struts2中iterator标签的相关使用
- 建立学习型组织
- Codeforces Round #380 Div. 1 C. Subordinates(贪心)
- page、include、link jsp页面的配置
- 图割论文阅读笔记:GrabCut in One Cut
- 记录关于AndroidManifest文件中属性的一些用法
- Struts2项目中关于Struts标签的相关问题
- MySQL学习16:多表连接
- Android:30分钟弄明白Touch事件分发机制
- Git 简单使用说明
- 奇因数代数和
- VC++ 中使用 std::string 转换字符串编码
- getopt 和 getopt_long 函数
- QCustomPlot类编写动态折线图,可坐标平移
- 5.1 支持向量机SVM(support Vector Machine)算法概念(上)