Single-letter camelcase fields not submitted in St

2019-08-19 18:18发布

问题:

I have this very-2 strange mapping issue. All fields names like amount, newCase, status etc. are reaching perfectly to the struts Action but none of the single-letter camelCase fields are reaching the action. All are null.

For e.g.

public String callback() {
        System.out.println("nCase : " + nCase);
        System.out.println("Amount : " + amount);
        System.out.println("fAmount==============" + fAmount);
        System.out.println("fFee==============" + fFee);
        System.out.println("sStatus==============" + sStatus);
        System.out.println("sDetails==============" + sDetails);
        System.out.println("iTypeId==============" + iTypeId);
        ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
        return SUCCESS;
    }

The above code gives output :

nCase : 0.0
Amount : 2323.0
fAmount==============0.0
fFee==============0.0
sStatus==============null
sDetails==============null
iTypeId==============null

for the following request URL :

http://localhost:8084/callback?fAmount=23.323&fFee=23&amount=2323&nCase=2323.23&sStatus=nitin

I have proper getters & setters (checked many times now)

I have checked the interceptors also, and I'm using the defaultStack for this method/action