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

Using action and method in form action duplicates method part

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.2
    • 2.1.3
    • Core Actions
    • None
    • 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

        1. ServletUrlRenderer.java.patch
          0.9 kB
          Mike Bydalek

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: