dear folks, i have a portlet project which makes use of 2.2.3 for a year and currently prepare to upgrade to 2.3.4. However, a problem occurred after replacing struts jars. It seems to me that it is configuration problem (due to new config ??) but i cannot figure it out…. hope you can add some ideas to let me try it out….
Problem : ======== 09:39:31,349 ERROR [jsp:154] Unable to locate action mapping for request, probably due to an invalid action path: /abcportlet/updateForm - [unknown location] Setup: ======== - I changed all struts*.jar from 2.2.3 to 2.3.4 (including struts2-portlet-plugin) - i modified config param struts.action.extension from "" to "," - the portlet can load an input form, after clicking the submit button to invoke the updateForm action, the above error occurred. struts.xml ======== <package name="abcportletView" namespace="/abcportlet/view" extends="struts-portlet-default"> <action name="updateForm" method="updateForm" class="xyz.myActionClass"> [...] jsp ======== <s:form id="sampleForm" name="sampleForm" action="updateForm" namespace="" theme="css_xhtml" method="post" enctype="multipart/form-data" > [...] </s:form> portlet.xml ======== <portlet> <portlet-name>abcportlet</portlet-name> <portlet-class>org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher</portlet-class> <init-param> <name>portletNamespace</name> <value>/abcportlet</value> </init-param> <init-param> <name>viewNamespace</name> <value>/view</value> </init-param> <init-param> <name>defaultViewAction</name> <value>input</value> </init-param> [...] </portlet> Regards, Eric