struts.xml
<package name="struts2" namespace="/page" extends="struts-default">
<action name="hello" class="com.str2.web.action.LoginAction">
<result name="re">/WEB-INF/page/test.jsp</result>
<result name="log">/login.jsp</result>
<result name="ok">/content.jsp</result>
</action>
</package>
login.jsp
<s:form action="/page/hello">
<s:textfield name="username" label="username"></s:textfield>
<s:password name="password" label="password"></s:password>
<s:submit/>
<s:reset/>
</s:form>
打开login.jsp的时候,控制台老是输出,但是不影响使用:
警告: No configuration found for the specified action: 'hello' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
2008-9-6 11:35:47 org.apache.struts2.components.Form evaluateExtraParamsServletRequest
警告: No configuration found for the specified action: 'hello' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
后将 login.jsp
<s:form action="/page/hello">
改为
<s:form action="hello" namespace="/page">
问题解决!
分享到:
相关推荐
报错crashsender.exe is not found the specified path
This is the default action if dest does not exist, or if no filesystem is on it -keep-as-directory If one source directory is specified, create a root directory containing that directory, ...
IllegalStateException: The specified child already has a parent.我的博客中有文章讲解
使用mdadm创建软RAID的具体操作步骤
JAVA连接各种数据库的方法和代码,非常适合JAVA的初学者,可能也适合忘记连接代码的工作人员!
Delete the folder under the specified path
it is found in the word list file) is a possible correction. Your solution to this assessment should consider the following variations of a misspelled word. • Transposing of adjacent letters For ...
vs常见编译错误集锦 vs常见编译错误集锦 vs常见编译错误集锦
mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
Android wifi测试demo结合网上一些代码,编写的,实现了wifi扫描,连接,密码输入等功能
在初始化Vue项目的的时候发现警告 yarn install 查了下发现是,package.json 文件中缺少license参数 { name: movie_view, version: 0.1.0, license: MIT, private: true, scripts: { serve: vue-cli-...
TypeError: No loop matching the specified signature and casting was found for ufunc det 查了半天发现是数据类型的问题,numpy在算逆的时候会先检查一下数据类型是否一致,若不一致就会报错(话说这个错误提示...
number of Network Addresses specified in Preferences->Network will be the number of NICs tested. This will error faulty NICs that are not detected by the BurnInTest auto NIC detection mechanism. ...
There is nothing in the JavaMail API for tasks like configuring a server to relay messages or to add and remove e-mail accounts. POP POP stands for Post Office Protocol. Currently in version 3, ...
主要给大家介绍了关于iOS报clang: error: no input files错误的解决方法,文中通过图文介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧。
Optimized the Load ASL operator in the case where the source operand is an operation region. Simply map the operation region memory, instead of performing a bytewise read. (Region must be of type ...
Bai渡Yun链接 内含CK和CK+两个完整数据集,只可用于人脸表情识别的学术研究。The Extended Cohn-Kanade Dataset (CK+): A complete dataset for action unit and emotion-specified expression
提示No input file specified的解决方法.docx
nginx提示No input file specified怎么办.docx
解决No input file specified