cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ParameterMap of httpServletRequest in post call coming null for large data size of during post

0 Likes
374

Dear Experts,

I am calling a post method on a button click , send couple of data to post call as shown below . data d4 is some json data in some cases it is of very large size around 3.5MB .Due to large data the call fails and when we try to get the parameter map from httpServletRequest it gives null.

I tried changing the maxPostSize in tomcat to accomodate more than 4MB of data in request , it is not working.

I am still getting same null accessing parameter map.

Any idea what could be the issue , am I missing something ?

ajax call

var data = { d1: strvalue, d2: strvalue, d3: strvalue, d4: d4json,

 };
 $.ajax({
   type: "POST",
   data: data,
   url: "/controller/url",

Controller method

@RequestMapping(method = RequestMethod.POST, value = "/controller/url") public String postControllerMethod(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, final Model model){

 Map<String, String[]> paramMap = httpServletRequest.getParameterMap();

//paramMap -- is coming null

}

Regards, Ved

Accepted Solutions (0)

Answers (0)