Mark Spritzler wrote:So JQuery created it from the response it received from the server
"towards the FOLDER: /mapping/produces and not towards a .json file"
To help clear something up here. It is not a folder or a file. It is a URL. a routing path in a URL meaning the url contains the server/domain address, then the app name, then the path. If .json is ther eit is not to point to a file that ends in .json it is still just part of the URL path. It is not directories and files.
So when JQuery has its ajax method, it takes some callback functions. And it knows how to create the parameter and pass it to that callback function.
Mark
Mark Spritzler wrote:I didn't give you any link. In my post, I entered in nothing of a link. But it looks like the browser or something else, which happens a lot places on the internet, did a search or created a popup with a link. I did not put that there.
getParameter is not on the String class, it returns a String, but is in the HttpServletRequest class.
And @RequestParam means Spring will go into the HttpServletRequest and call getParameter on that class for you. It will also convert the String that returns to the type of the parameter in your Controller method.
Mark
Mark Spritzler wrote:You can't put two params like that in params=""
But you could do it in code. Pass in the HttpServletRequest and look yourself.
Or have the first two methods, then the third not have params in it. It might be that the first two are checked first then the third. And in the third pass HttpServletRequest and make sure they aren't in there.
Mark
Prasad Krishnegowda wrote:whenever a request is made for "*.html" it invokes the servlet with url-pattern "/", which is your dispatcherservlet1, in this xml you don't have request mapping so this exception is thrown..
Already, when you map "/" (All) requests to spring dispatcher servlet, what's the need creating a new dispatcher servlet for *.html?