You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/10/20 13:49:00 UTC

[jira] [Reopened] (WW-5248) action attribute on submit tag not working as espected

     [ https://issues.apache.org/jira/browse/WW-5248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart reopened WW-5248:
-------------------------------

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