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

Add a method allowing to know what is the name of the "method" passed in the request

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.11
    • Fix Version/s: 3.0
    • Component/s: "New" API
    • Labels:
      None
    • Environment:

      XP2 Tomcat 5.5 JDK 1.5.0.12

      Description

      Add a method allowing to know what is the name of the "method" passed in the request

      Methods can be specified in a form in the JSP, for submit buttons and you can use them in links too.

      Add a method in ActionSupport called String getActionmethodName()
      if you submit .... method:save it would return "save" etc.

      I use a an equivalent method to do some security logic in my actions if multiple methods can hit the same action

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              odupuy olivier dupuy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: