You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "João Francisco Rösler Rodrigues (Jira)" <ji...@apache.org> on 2022/10/20 13:45:00 UTC
[jira] [Created] (WW-5248) action attribute on submit tag not working as espected
João Francisco Rösler Rodrigues created WW-5248:
---------------------------------------------------
Summary: 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
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)