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 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.
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton