程序成功进入action,跳转jsp是报错!错误信息:
2013-9-23 16:50:20 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find action or result
No result defined for action com.enn.test.action.LoginAction and result success
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:364)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)
at
.....
解决办法:在struts.xml文件中加入 namespace="/"即可。
<struts>
<package name="struts2" namespace="/" extends="struts-default">
<action name="login" class="com.enn.test.action.LoginAction">
<!-- result没有名字是默认的success -->
<result name="success">/index.jsp</result>
</action>
</package>
</struts>
分享到:
相关推荐
2. **动态创建和管理控件**:了解如何在运行时动态地添加或删除TdxRibbon上的控件,这通常需要用到AddItem或其他相关方法。 3. **拼音输入接口集成**:研究如何与Windows系统的输入法框架交互,捕获和处理拼音输入...
例如:"Not only I but also Tom and Mary are fond of watching television." 2. **连接谓语动词**: "not only...but also..."连接的动词通常不重复。例如:"I know not only English but also Russian." 3. **...
例如:"Not only I but also Tom and Mary are fond of watching television." 在这个句子中,动词"are"是复数形式,因为"Tom and Mary"是复数主语。 2. **连接谓语动词**: 在某些情况下,"not only…but also…...
MobaXterm_installer.dat
P2排名基于机器学习的配体结合位点预测。描述P2Rank是一个独立的命令行程序,可以从蛋白质结构预测配体结合口袋。 它无需依赖外部软件来计算复杂特征或依靠已知蛋白质-配体模板的数据库即可获得较高的预测成功率。...
- 动词bring的用法:Hobbies can bring us happiness, friendship and knowledge.(爱好可以给我们带来快乐、友谊和知识。) - used to的用法:I used to listen to music, but now I enjoy dancing.(我过去常常...
- 你不能选择你被给予的,但你可以选择如何利用它:You cannot choose what you are given, but you can choose how you make use of it. ("make use of"意为“利用”,这里表达了自主选择权的重要性。) 4. 高中...
2. 体育与音乐项目前的冠词使用:在英语中,球类名词前不加定冠词"the",如"play basketball";乐器名词前必须加定冠词"the",如"play the violin"。 3. 情态动词的运用:"can"表示能力,适合用于描述能够做什么;...
4. 特殊用法包括:"not...enough/too"结构,表示“不够/过分”,例如:"I can't say a thank you too much."(我再怎么感谢你也不过分。) 在实际应用中,掌握这些形容词和副词的用法不仅能提高学生的语法素养,还...
收集箱[ ] 通过侧边栏【任务】按钮,很方便给看板添加任务[ ] 讲解示例库主页设计[ ] [[案例进展情况]] @[[2022-03-30]] @@{23:3
6. Not only I but also David and Iris ______ fond of playing basketball. 正确答案:c. are 解析:"not only...but also..."连接并列主语时,遵循就近原则,David and Iris是复数,故用are。 7. Neither Tom ...
- Not only my parents but also I am fond of sports.(不但我的父母,我也喜欢运动。) - He is not only a teacher but also a friend for us.(他不仅是我们的老师,也是我们的朋友。) - Not only does he ...
在2019年人教新目标版八年级英语下册Unit2 "I’ll help to clean the city parks"中,我们重点学习了一系列与社会服务、环保和个人行动有关的词汇及短语,同时也涵盖了动词不定式的用法。下面将详细梳理这些知识点。...
They’re not fond of rules. And they have no respect for the status quo. You can quote them, disagree with them, glorify or vilify them. About the only thing you can’t do is ignore them. Because ...
elif condition2: # 如果condition1为假,但condition2为真,执行这里的代码 else: # 如果所有条件都为假,执行这里的代码 ``` 3. 输出 `print()`函数用于打印输出,可以输出字符串、变量等内容。例如: ```...
例如:“This is what I can do.”或“Well, whether he can go with us or not is not sure.”,这种结构使句子显得更有深度。 5)**附加(多此一举)**:插入同位语从句、定语从句或插入语能增加句子的信息量。如...
- afford: 买得起,如:Can you afford the rent for this apartment? - pay: 支付,如:Please pay the bill before leaving. - pay off: 偿还,如:He paid off all his debts in five years. - pay for: 支付...
但是的意思,但不能与"but"同时使用,例如:"Although I have passed the exam, I am not pleased with the result." 最后,"so"有特殊用法。在倒装句中,"so+ 情态动词 / 助动词 /be 动词 + 主语"表示前面的情况也...
13. **not as good as ours** - 在比较不同的系统或解决方案时,可能会用到这个表达:Our system is not as good as theirs, but we're constantly improving. 以上内容虽然与直接的IT技术知识有所偏离,但它们展示...