getBooleanParameter(request, name, defaultVal)
Grant Gochnauer added a comment - 04/Feb/10 08:45 AM Another comment with this (I'll create another JIRA) but I noticed that I use interfaces, @RequestParam annotation don't seem to set a default value. Example. This doesn't work:
public ModelAndView unsubscribeUser(HttpServletRequest request, @RequestParam String id, @RequestParam(required = false) String unsubscribe)
but this does:
public ModelAndView unsubscribeUser(HttpServletRequest request, @RequestParam(value = "id") String id, @RequestParam(required = false, value = "unsubscribe") String unsubscribe)
https://jira.springframework.org/browse/SPR-6797
https://jira.springframework.org/browse/SPR-4237