You could write a servlet filter that does this. But it does need some coding work.
Here is the link to the code - http://www.acooke.org/cute/Forcinglow0.html
Something like this - in this servlet filter convert parameters to lower case
public final class LowerCaseParametersFilter implements Filter {
@Override
public void doFilter(final ServletRequest request,
final ServletResponse response,
final FilterChain chain)
throws IOException, ServletException {
if (request instanceof HttpServletRequest) {
LOG.debug("Wrapping request");
chain.doFilter(new LowerCaseRequest((HttpServletRequest) request),
response);
} else {
LOG.warn(format("Not wrapping request: %s", request.getClass()));
chain.doFilter(request, response);
}
}
}
Here is the xml config - u wuld need
<bean id="delegatingFilter"
class="org.springframework.web.filter.DelegatingFilterProxy"
p:targetBeanName="lowerParams"/>
<bean id="lowerParams"
class="com.isti.bss.mvc.LowerCaseParametersFilter"/>
I did some research and found this Case-insensitive query string request paramters
public class HttpCustomParamFilter implements Filter
{
private static class HttpServletRequestCustomeWrapper extends HttpServletRequestWrapper
{
private String[] parameterValues;
@Override
public String[] getParameterValues(String name)
{
Map<String, String[]> localParameterMap = super.getParameterMap();
// Handle case insensitivity of http request paramters like start, count, query, sort, filter etc.
if (localParameterMap != null && !localParameterMap.isEmpty())
{
parameterValues = new String[localParameterMap.size()];
for (String key : localParameterMap.keySet())
{
if (name.equalsIgnoreCase(key))
parameterValues = localParameterMap.get(key);
else
parameterValues = null;
}
}
return parameterValues;
}