Announcement Announcement Module
Collapse
No announcement yet.
rest invoke using url, & causing issue for getting the parameter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • rest invoke using url, & causing issue for getting the parameter

    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 spring
    HTML Code:
     http://host/app_name/search?param1=[value]&param2=[value]
    But when escape character is used it breaks

    HTML Code:
     http://host/app_name/search?param1=[value]&param2=[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 work

    Code:
    <context-param> 
     <param-name>defaultHtmlEscape</param-name> 
     <param-value>true</param-value> 
     </context-param>
    Please help me is there any simple configuration or i need to override something
Working...
X