[ https://issues.apache.org/jira/browse/WW-5248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
João Francisco Rösler Rodrigues updated WW-5248: ------------------------------------------------ Description: I have one project running with struts and the bellow situation works fine with 2.5.29 version: jsp: {code:java} <s:form> <s:submit action="myAction"/> </s:form>{code} struts.xml: {code:java} <constant name="struts.mapper.action.prefix.enabled" value="true" /> <action name="myAction" class="com.foo.MyAction" method="executeMyAction"> {code} The form is submited and hadlered by the executeMyAction method, as espected. When upgraded to struts 6.0.3, the submit is ignoring the method mapped for this action and is invoking the previous method from the value stack. And I'm getting a "method not allowed" error. was: I have one project running with struts and the bellow situation works fine with 2.5.29 version: jsp: {code:java} <s:form> <s:submit action="myAction"/> </s:form>{code} struts.xml: {code:java} <constant name="struts.mapper.action.prefix.enabled" value="true" /> <action name="myAction" class="com.foo.MyAction" method="executeMyAction"> {code} The form is submited and hadlered by the executeMyAction method, as espected. When upgraded to struts 6.0.3, the submit is ignoring the method mapped for this action and is invoking the previous method from the value stack. And I'm getting a "method no allowed" error. > action attribute on submit tag not working as espected > ------------------------------------------------------ > > Key: WW-5248 > URL: https://issues.apache.org/jira/browse/WW-5248 > Project: Struts 2 > Issue Type: Bug > Components: Core, Core Actions, Core Tags > Affects Versions: 6.0.3 > Reporter: João Francisco Rösler Rodrigues > Priority: Blocker > > I have one project running with struts and the bellow situation works fine > with 2.5.29 version: > jsp: > {code:java} > <s:form> > <s:submit action="myAction"/> > </s:form>{code} > struts.xml: > {code:java} > <constant name="struts.mapper.action.prefix.enabled" value="true" /> > <action name="myAction" class="com.foo.MyAction" method="executeMyAction"> > {code} > The form is submited and hadlered by the executeMyAction method, as espected. > > When upgraded to struts 6.0.3, the submit is ignoring the method mapped for > this action and is invoking the previous method from the value stack. And I'm > getting a "method not allowed" error. -- This message was sent by Atlassian Jira (v8.20.10#820010)