Is it possible to: set a URI template in the mvc:view-controller element of the *-servlet.xml file or in a controller method and then use/get that path parameter in a js
If you want access to it in the jsp, return it as an attribute from the controller:
@RequestMapping("/home/{error}") public void handleError(@PathVariable String error, ModelMap model) { //your regular stuff model.addAttribute("error", error); }
-
You have an error...