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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.3.15
    • None
    • Core Interceptors
    • windows 7 64-bit, jdk 1.7, struts2.3.15

    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            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

                Slack

                  Issue deployment