Looking at the comment you added below your question, it looks like you were trying to FORWARD to a view (ex: JSP). So, yes, no redirects there. And you can either set these parameters on the HTML FORM (like you did). But you could also set these values by adding them to the model. So, in this case, you should definitely be using the first ModelAndView contructor parameter to specify the view to forward to [without the "redirect" part] and use the second parameter to pass the model parameters.
This is something that happens a lot when converting older Struts applications to Spring applications. In struts, it "looks like" you can add request/URL parameters in funny ways. When in reality, once you received the inboud HTTP request, it makes no sense to add things to the URL parameters. You'd just want to add new values to your "Request processing" logic (add parameters to the MODEL). If you really need to add parameters to a URL, it's only if you want to create a new request (mostly a redirect to another page). And in that case, the other answer is on the correct path but you want to add the URL parameters to the "redirect:" String (in the FIRST parameter of the ModelAndView constructor):
return new ModelAndView("redirect:fubar/update?param1=" + param1+ "¶m2=" + param2);
Of course, that's if you want to do a redirect (HTTP 302) to another page.
uiModel.addAttribute("path", "fubar/update?param1=" + param1+ "¶m2=" + param2);fixed the problem.