Am sending data from JSP to controller using query string.
My controller is annotation driven.
The value of the the request parameter should be case-insensit
Another approach would be to have two parameters "orgId" and "orgid" and have the optional.
public String welcome(@RequestParam(value="orgID", required = false) String org_ID, @RequestParam(value="orgid", required=false, String orgid, ModelMap model) {
final String orgId = orgid == null ? org_ID : orgid;
...
}
But if you have control over the parameters I would strongly prefer to just have one consistent way, say org-id and follow it both in the client and the server side.