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

Using action and method in form action duplicates method part

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.3
    • Component/s: Core Actions
    • Labels:
      None
    • Flags:
      Patch

      Description

      The code <@s.form action="add!input"></@s.form> outputs the following HTML:

      <form id="add_input" name="add!input" onsubmit="return true;" action="/admin/classes/add!input!input" method="post"><table class="wwFormTable"></table></form>

      Basically, the full action value is passed in when creating the ActionMapping instead of the broken down actionName.

      -Mike

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wesw@wantii.com Wes Wannemacher
                Reporter:
                mbydalek Mike Bydalek
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: