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:6Scriptdetailed error=========================Request URL:http://localhost:8084/ttmaven/box/create/board/3/vertical/MyBoxTitleRequest Method:POSTStatus Code:406 Not AcceptableRequest Headersview sourceAccept:*/*Accept-Encoding:gzip,deflate,sdchAccept-Language:en-US,en;q=0.8Connection:keep-aliveContent-Length:0Cookie:JSESSIONID=5B576BDC36B0D9DA1852C7DE176B1721Host:localhost:8084Origin:http://localhost:8084Referer:http://localhost:8084/ttmaven/boards/3User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36X-Requested-With:XMLHttpRequestResponse Headersview sourceContent-Length:1067Content-Type:text/html;charset=utf-8Date:Mon, 07 Oct 2013 20:37:41 GMTServer:Apache-Coyote/1.1========Request URL:http://localhost:8084/ttmaven/box/create/board/3/vertical/MyBoxTitleRequest Method:POSTStatus Code:405 Method Not AllowedRequest Headersview sourceAccept:*/*Accept-Encoding:gzip,deflate,sdchAccept-Language:en-US,en;q=0.8Connection:keep-aliveContent-Length:0Cookie:JSESSIONID=06B4B8D1EF7CFA97143EFE6FACC754A0Host:localhost:8084Origin:http://localhost:8084Referer:http://localhost:8084/ttmaven/boards/3User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36X-Requested-With:XMLHttpRequestResponse Headersview sourceAllow:GETContent-Length:1047Content-Type:text/html;charset=utf-8Date:Tue, 08 Oct 2013 14:41:30 GMTServer:Apache-Coyote/1.1controller================@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>