title: How to access Request parameters in Spring MVC Interceptors
body: <p>I am using Spring MVC Interceptors, i.e implementing "HandlerInterceptor".</p>
  
  <p>Inside my preHandle method how to get Request parameters passed from browser? we need to pre process based on request inputs from browser</p>
  
  <pre><code>@Override
  public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
      request.getParameter("myData") // this is returning null        
  }
  </code></pre>
  
  <p>The data is passed from front end using jquery post request</p>
  
  <pre><code>var rq = 'myData:{"custDetails":{"CustId":"123456"}}';
  $.ajax({
          url : "myhost/TestController/testMethod",
          type : "POST",
          dataType : "json",
          beforeSend : function(xhr) {
                  xhr.setRequestHeader("Content-type", "application/json");
          },
          data : rq,
          success : function(data) {
                  if (data.status == false)
                          //location.href = "failure.html";
                  else
                          $('#result').html(data.test.msg);
          },
          error : function(data) {
  
          }
  </code></pre>
  
  <p>I am able to get Request Header details as is not parameter details am i doing any mistake Please advice?</p>