title: The request sent by the client was syntactically incorrect - Spring mvc
body: <p>I am facing an issue with submitting the value to the controller in Spring MVC.</p>
  
  <p>When I call the controller with <code>href</code> it gets submitted to the controller method, I have submitted the following way : </p>
  
  <p><code>href='CIMtrek_Compliance_Daily_Shipments_Case_Pack_Calendar?date=&lt;%=formatedDate%&gt;'</code></p>
  
  <p>but when I submitted the same through javascript I get this exception <code>The request sent by the client was syntactically incorrect.</code></p>
  
  <p>this is how I submit through javascript : </p>
  
  <pre><code>function getCasePackCalendar(date) {
       viewName ="CIMtrek_Compliance_Daily_Shipments_Case_Pack_Calendar?date="+date+" ";
       global.forms[0].action = viewName;
       global.forms[0].method = "GET"
       global.forms[0].submit()
  }
  </code></pre>
  
  <p>and this is my controller method : </p>
  
  <pre><code>@RequestMapping(value = "/CIMtrek_Compliance_Daily_Shipments_Case_Pack_Calendar", method = RequestMethod.GET)
  
          public ModelAndView  CIMtrek_Compliance_Daily_Shipments_Case_Pack_Calendar(@RequestParam("date") String date,HttpServletRequest request) {
              String[] data = new String[] {date};
          HttpSession session = request.getSession(true);
          String UserName = "";
          if(session.getAttribute("CIMtrek_UserName")!=null)
           UserName = session.getAttribute("CIMtrek_UserName").toString();
          ViewContent vc = new ViewContent();
          String HTML = vc
          .getContent(
          "com/cim/xml/CIMtrek_Compliance_Daily_Shipments_Case_Pack_sql.xml",
          "com/cim/xsl/view.xsl", "1 and 10","1","","0",UserName,data,"");
  
          List&lt;String&gt; ls = new ArrayList&lt;String&gt;();
              ls.add(HTML);
              logger.info("Welcome CIMtrek_Visitors_By___Unipart_Div__Date__Host___Visitor!");
              Map&lt;String, Object&gt; model = new HashMap&lt;String, Object&gt;();
  
          model.put("list", ls);
          model.put("iSPost", "N");
  
          logger.info("Welcome CIMtrek_Compliance_Daily_Shipments_Case_Pack!");
  
          return new ModelAndView("view", model);
  
          }   
  </code></pre>
  
  <p>this is how I have form </p>
  
  <pre><code>&lt;form id="CIMtrek_Compliance_Daily_Shipments"&gt;
                                                 &lt;input type="hidden" id="CIMtrek_selectedIDs" name="CIMtrek_selectedIDs" value="" /&gt;
                                                 &lt;input type="hidden" id="CIMtrek_xmlData" name="CIMtrek_xmlData" value="" /&gt;
                                                 &lt;input type="hidden" id="CIMtrek_formName" name="CIMtrek_formName" value="CIMtrek_Compliance_Daily_Shipments" /&gt;
                                               &lt;/form&gt;
  </code></pre>
  
  <p>what could be the problem. </p>
  
  <p>Please help me to find it.</p>
  
  <p>Best Regards.</p>