[
https://issues.apache.org/struts/browse/STR-2928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Benedict updated STR-2928:
-------------------------------
Fix Version/s: Future
Attribute is incorrect. Subclassing and creating a new tag is more appropriate:
SubmitLinkTag
> Add method attribute to html:link
> ---------------------------------
>
> Key: STR-2928
> URL: https://issues.apache.org/struts/browse/STR-2928
> Project: Struts 1
> Issue Type: New Feature
> Components: Taglibs
> Environment: all
> Reporter: David Durham
> Priority: Minor
> Fix For: Future
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.