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

request parameters having name like iMessage ain't recognized/filled in the Action

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.3.15
    • Fix Version/s: None
    • Component/s: Core Interceptors
    • Labels:
    • Environment:

      windows 7 64-bit, jdk 1.7, struts2.3.15

    • Flags:
      Important

      Description

      A field like
      private String iMessage;
      will have getters/setters like
      public String getiMessage()

      {...}
      public String setiMessage(){...}

      If you think it's incorrect (which I thought initially) then please refer this link - http://dertompson.com/2013/04/29/java-bean-getterssetters/

      Now, if the request contains ?iMessage=my-message

      It's not recongnized/filled in the Action, while changing the setter to
      setIMessage() does the job, which is incorrect (due to java naming conventions).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                xcoder Nitin Surana
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3h
                  3h
                  Remaining:
                  Remaining Estimate - 3h
                  3h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified