Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5248

action attribute on submit tag not working as espected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 6.0.3
    • 6.1.1
    • Core, Core Actions, Core Tags
    • None
    • Important

    Description

      I have one project running with struts and the bellow situation works fine with 2.5.29 version:

      jsp:

      <s:form>
        <s:submit action="myAction"/>
      </s:form>

      struts.xml:

      <constant name="struts.mapper.action.prefix.enabled" value="true" />
      
      <action name="myAction" class="com.foo.MyAction" method="executeMyAction"> 

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kikoblues João Francisco Rösler Rodrigues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: