错误[Jsr168Dispatcher:38]找不到行动没有映射的动作名称默认操作。 - [

2019-10-18 00:59发布

我有,当我运行我的portlet应用程序的问题,我有这样的错误:

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

我喜欢用Struts 2.2.1和6.0.6的Liferay工作

<?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>

Answer 1:

您还没有指定的namespace的注释。 如何正确操作映射命名空间看看在会议插件下列文件。



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