错误[Jsr168Dispatcher:38]找不到操作没有操作映射为操作名称默认。 - [未知位置] [英] ERROR [Jsr168Dispatcher:38] Could not find action There is no Action mapped for action name default. - [unknown location]
本文介绍了错误[Jsr168Dispatcher:38]找不到操作没有操作映射为操作名称默认。 - [未知位置]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个问题,当我运行我的portlet应用程序,我有这个错误:
错误[Jsr168Dispatcher:38]找不到操作没有操作映射为操作名称默认。 - [未知位置]
我使用Struts 2.2.1和Liferay 6.0.6
<?xml version =1.0encoding =UTF-8?&
<!DOCTYPE struts PUBLIC
- // Apache Software Foundation // DTD Struts Configuration 2.0 // EN
http://struts.apache.org/dtds/struts- 2.0.dtd>
< struts>
< constant name =struts.devModevalue =false/>
< package name =eleveextends =struts-portlet-default>
< action name =ajoutereleves>
< result> /JSPs/eleve/addeleve.jsp< / result>
< / action>
< action name =AddEleveActionclass =com.version.projet.actions.AddEleveAction>
< interceptor-ref name =jsonValidationWorkflowStack/>
< result name =input> /JSPs/eleve/addeleve.jsp< / result>
< result name =error> /JSPs/eleve/addeleve.jsp< / result>
< result> /JSPs/eleve/showseleves.jsp< / result>
< / action>
< / package>
< / struts>
解决方案您尚未指定命名空间
注释。如何将操作正确映射到命名空间请查看以下用于约会插件的文档。
I do have a problem when I run my portlet application, I have this error :
ERROR [Jsr168Dispatcher:38] Could not find action There is no Action mapped for action name default. - [unknown location]
I'm working with Struts 2.2.1 and Liferay 6.0.6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.devMode" value="false" />
<package name="eleve" extends="struts-portlet-default">
<action name="ajoutereleves">
<result>/JSPs/eleve/addeleve.jsp</result>
</action>
<action name="AddEleveAction" class="com.version.projet.actions.AddEleveAction">
<interceptor-ref name="jsonValidationWorkflowStack"/>
<result name="input">/JSPs/eleve/addeleve.jsp</result>
<result name="error">/JSPs/eleve/addeleve.jsp</result>
<result>/JSPs/eleve/showseleves.jsp</result>
</action>
</package>
</struts>
解决方案 You have not specified the namespace
annotation. How to properly map actions to namespaces look at the following documentation for convention plugin.
这篇关于错误[Jsr168Dispatcher:38]找不到操作没有操作映射为操作名称默认。 - [未知位置]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文