Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2928

Add method attribute to html:link

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Future
    • Component/s: Tag Libraries
    • Labels:
      None
    • Environment:
      all

      Description

      It would be nice to have the html:link tag accept an optional "method" attribute that defaults to "get" and when set to "post" does one of a couple different things.

      1 - adds a form, method="post" with hidden elements and a javascript link to submit the form.

      2 - adds a form, method="post", with hidden elements and a button to trigger the action

      This is needed because of the issue brought to light by google accelerator wrt URLs that do something other than retrieve data-- they need to be HTTP POSTs. So a common use case for html:link is to create "delete" links, which should be http POSTs.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              david.durham David Durham
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: