I have a controller mapping as below
Code:@RequestMapping(value = { "/search"}, method = RequestMethod.GET) public @ResponseBody Object search(@PathVariable("query") String query, @RequestParam(value = "param1", required = false) String param1, @RequestParam(value = "param2", required = false) String param2,) when i use url as given below it works fine i even get the value populated by springBut when escape character is used it breaksHTML Code:http://host/app_name/search?param1=[value]¶m2=[value]
Is there any configuration in springcontext or web.xml which will allow me to take care of encoding automatically ?? i have already tried setting below contect in web.xml but it does not workHTML Code:http://host/app_name/search?param1=[value]&param2=[value]
Please help me is there any simple configuration or i need to override somethingCode:<context-param> <param-name>defaultHtmlEscape</param-name> <param-value>true</param-value> </context-param>


Reply With Quote
