can i set the url before returning the ModelAndView?
is it possible to set your url before returning your model?
For example, my current url is
ModelAndView model = new ModelAndView("contact"); model.addObject("contactNo", "12345"); return model;
then after returning the model, my contact.jsp has been loaded to my browser but it's url is still
Try instantiating your ModelAndView like this,
ModelAndView model = new ModelAndView(new RedirectView("contact"));