@RequestMapping("VIEW") public String myHandle( @ModelAttribute("myCommand") TestBean tb, BindingResult errors, ModelMap model) { if (!model.containsKey("myKey")) { model.addAttribute("myKey", "myValue"); } return "myOtherView"; }