on 2019 May 16 1:19 PM
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 ?
var data = { d1: strvalue, d2: strvalue, d3: strvalue, d4: d4json,
};
$.ajax({
type: "POST",
data: data,
url: "/controller/url",
@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
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.