Nitin Surana created WW-4273:
--------------------------------
Summary: request parameters naming name like iMessage ain't
recognized
Key: WW-4273
URL: https://issues.apache.org/jira/browse/WW-4273
Project: Struts 2
Issue Type: Bug
Components: Core Interceptors
Affects Versions: 2.3.15
Environment: windows 7 64-bit, jdk 1.7, struts2.3.15
Reporter: Nitin Surana
Priority: Blocker
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).
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)