使用<s:form>标签出现如下告警:
2012-8-8 19:23:15 org.apache.struts2.components.Form evaluateExtraParamsServletRequest
警告: No configuration found for the specified action: 'AjaxTest' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
jsp代码
<s:form id="theForm1"
cssStyle="border:1px solid black;"
action = "AjaxTest.action"
method = "post"
theme = "ajax">
<s:textfield name = "data" label = "请输入您喜欢的图书"/>
<!-- 制定服务器响应填充上面ID的为show的html元素 -->
<s:submit value = "修改上面的静态文本" targets="show"/>
</s:form>
配置文件:
<package name="loginWarp" namespace="/" extends="struts-default">
<action name = "AjaxTest" class = "com.AjaxTestAction">
<result>/AjaxResult.jsp</result>
</action>
</package>
修改方法:
(1)修改配置文件里的namespace="",同时,将jsp中"AjaxText.action"中的.action去掉,这个.action不能由我们手工添加,Struts2会自动为你完成这个工作
(2)修改配置文件里的namespace="/test",同时,在jsp的form中添加
namespace="/test",同时,去掉"AjaxText.action"的.action
引用:
http://m635674608.iteye.com/blog/1489459
分享到:
相关推荐
标题中的“tomcat报错Unable to find 'struts multipart saveDir'”是一个常见的问题,通常出现在使用Apache Struts框架,并且在处理multipart/form-data类型的请求时。这种类型的请求通常用于上传文件,而`saveDir`...
Form action defaulting to 'action' attribute's literal value. ``` **知识点解释:** 1. **问题描述:** - 在此例中,Struts框架未能找到指定的`fileUpLoad.action`配置。 - 这可能是因为配置文件中没有为该...
Select collections with clear goals instead of defaulting to objects or arrays. See how to simplify iterations from complex loops to single line array methods. Master techniques for writing flexible ...
19或许各位有疑问,诶,窝明明固体物理和热统学过啊,如果不计入格点间的非简谐相互作用(即关于位置变化量的3阶项及以上),非谐效应中的热膨胀和热传导是不存在的由于核心思路是通过热流和温度梯度在某段范围内...
SMTP server will relay the message on to the SMTP server of the recipient(s) to eventually be acquired by the user(s) through POP or IMAP. This does not require your SMTP server to be an open relay,...
The design discussions concentrate on how to choose between different approaches to accomplishing something in C++. How do you choose between inheritance and templates? Between templates and generic ...
- Added defaulting mechanism for handshake thresholds to avoid errors due to fixed defaults conflicting with driver queue size defaults. - Changed default for sendTimeoutMultiplier for not NT-...
Clicking 'Open File' button opens a [text box] file dialog, defaulting to the sdcard); enter the name of a build.prop type file on the sdcard. (cp /system/build.prop /sdcard/build.prop first) Opening ...
Idea创建的Maven项目出现警告:No archetype found in remote catalog. Defaulting to internal catalog所需要的文件
ModernGadgets is a set of sleek, minimalist, information-dense gadgets that are designed to fit right into your modern desktop....- Allows process filtering, defaulting to all system-re
LaneGCN,全称为Lane Graph Convolutional Network,是一种用于轨迹预测的深度学习模型,它在自动驾驶、智能交通等领域有着广泛的应用。轨迹预测是解决如何根据历史车辆或行人的运动轨迹,预测其未来可能的路径问题...
处理slf4j日志使用的基本错误,导入三个包,分别是slf4j-impl,slf4j-api和slf4j-log4j12
eantruntime' was not set, defaulting to build.sysclasspath=last; set to false fo r repeatable builds BUILD SUCCESSFUL Total time: 0 seconds 3.执行命令: java -jar textclient.jar <username> <port> ...
现象: … java: 1801: method does not override a method from its superclass @Override… 原因: Eclipse is defaulting to Java 1.5 and you have classes implementing interface methods (which in Java 1.6 ...
java运行依赖jar包
SLF4J: Failed to load class "org.slf4j.impl....SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[javac] D:\java\wsdd\build.xml:16: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 5 source files to D:\java\...
* True to smoothly scroll to the new item, false to transition * immediately */ public void setCurrentItem(int item, boolean smoothScroll) { mPopulatePending = false; setCurrentItemInternal...
标题 "csp-defaulting-demo-repo" 暗示这是一个关于云服务提供商(Cloud Service Provider,简称CSP)默认配置的示例仓库。在IT领域,CSPs提供各种云服务,如基础设施即服务(IaaS)、平台即服务(PaaS)和软件即...
"analyzing_borrowers_risk_of_defaulting"这个项目可能是一个分析借款者违约可能性的案例研究或教程,旨在帮助金融机构、贷款平台或其他相关机构更好地理解并预测潜在客户的信用风险。 首先,我们要了解违约风险...