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

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.11
    • 6.7.1
    • "New" API
    • None
    • 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

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

            Dates

              Created:
              Updated: