错误[Jsr168Dispatcher:38]无法找到操作没有为操作名称默认映射的操作。 - [未知位置]

时间:2013-04-16 15:49:57

标签: java configuration struts2 liferay portlet

运行我的portlet应用程序时遇到问题,我有这个错误:

ERROR [Jsr168Dispatcher:38] Could not find action There is no Action mapped for action name default. - [unknown location] 

我正在使用Struts 2.2.1和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>

1 个答案:

答案 0 :(得分:1)

您尚未指定namespace注释。如何将操作正确映射到namespaces,请查看以下常规插件文档。