rendered paste bodyerrors================3 requests ❘ 3.6 KB transferredMyBoxTitle/ttmaven/box/create/board/3/verticalPOST406Not Acceptabletext/htmljquery-1.10.2.min.js:6ScriptMyBoxTitle/ttmaven/box/create/board/3/verticalPOST405Method Not Allowedtext/htmljquery-1.10.2.min.js:6ScriptMyBoxTitle/ttmaven/box/create/board/3/verticalPOST405Method Not Allowedtext/htmljquery-1.10.2.min.js:6Scriptcontroller================@RequestMapping (value = "/box/create/{parent}/{parentId}/{boxType}/{boxTitle}" , headers="Accept=*/*", method=RequestMethod.GET) public @ResponseBody Boxes createBox(ModelMap model, @PathVariable(value="parent") String parent, @PathVariable(value="parentId") String parentId, @PathVariable(value="boxType") String boxType, @PathVariable(value="boxTitle") String boxTitle ){ // some operations to get savedBox; return savedBox;jsp=======================<script type="text/javascript"> function madeAjaxCall(){ $.ajax({ type: "get", url: "${pageContext.request.contextPath}/box/create/board/3/vertical/MyBoxTitle", cache: false, //data:'firstName=' + $("#firstName").val() + "&lastName=" + $("#lastName").val() + "&email=" + $("#email").val(), success: function(response){ alert(response); $('#result').html(""); var obj = JSON.parse(response); $('#result').html(obj); //$('#result').html("First Name:- " + obj.firstName +"</br>Last Name:- " + obj.lastName + "</br>Email:- " + obj.email); }, error: function(){ alert('Error while request..'); } }); } </script> <form name="employeeForm" method="post"> <table cellpadding="0" cellspacing="0" border="1" class="GridOne"> <tr> <td colspan="2" align="center"><input type="button" value="Ajax Submit" onclick="madeAjaxCall();"></td> </tr> </table> </form> <div id="result"></div>