1
我做的,当我跑我的portlet应用程序有问题,我有这样的错误:错误[Jsr168Dispatcher:38]无法找到操作没有为操作名称默认映射的操作。 - [未知地点]
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>
工作
感谢您的回复。问题仍然存在。因为我的例子运行良好没有liferay,但是当我配置它到一个struts2 portlet我有这个问题。 – Issamovitch
关闭devMode = false –