Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.3.28
-
None
-
CentOS6/Windows7, Oracle Java 1.8.0_74, Tomcat6
Description
After I upgraded Struts from 2.3.24.1 to 2.3.28, some action classes got unable to receive some GET parameters.
The action classes have fields and setter methods like below.
private int cId;
public void setCId(int cId) {
this.cId = cId;
}
private int blockId;
public void setBlockId(int blockId) {
this.blockId = blockId;
}
http://localhost:8080/app/XXX.action?cId=9&blockId=145
When I send an HTTP request from a link like above, the action class only receive only 'blockId' value.
cId=0
num=145
But if I change the field name 'cId' to 'cid' and the method name 'setCId' to 'setCid', the GET value 9 will be passed to 'cid'.
cid=9
num=145
Attachments
Issue Links
- is duplicated by
-
WW-4666 Values stored in a Set a object is not displayed using <s:iterator>
- Closed
-
WW-4668 Issue with Struts2 Request Parameters after update to Struts 2.3.29
- Closed
-
WW-4699 Issue resolving objects name on struts tags
- Closed
-
WW-4778 Property binding does not work correctly for attribute lName with setter setLName()
- Closed
-
WW-4803 OGNL not working with camel case and reverting to 3.0.6 isn't working
- Closed
- is related to
-
WW-3909 Not set parameter value to Action correctlly
- Closed