In the controller, I have this code, by any means, I have to get a request for the "search" of the mapping value. How is this possible?
@RequestMapping ("/ search /") public map search specialTerm (@RequestParam ("name") string name) {// more code here}
< / Div>
One way is to get it from the servlet path. @RejectParam ("name") string name, HTTPSvette request) {string mapping = request .getServletPath (); // more code here}
Comments
Post a Comment