After following this question, I added HttpServletRequest
parameter to my method. But I added nearly 20 IF conditions to have a complete case-insensitive URL.
This is a completely painful and ugly way of coding, I know. I request anyone to give an amazing solution to this.
I need to have a case-insensitive request-parameter. The request parameter which is sending is orgID
. This parameter would be coming in different ways. E.g. Orgid
, oRgid
, orGid
, orgID
... and so-on
I cannot do this directly as request.getParamter ("orgID")
. For this, I am adding many if conditions. :-( as I said, completely ugly coding.