void function ( Model arg0 ) { arg0 . addAttribute ( "srini_string" , "srini_string" ) ; }
pay attention to this method . this is just an arbitrary method . however , it as an annotation @modelattribute . this annotation tells spring to run this method before any method of this controller . as a result , `` welcomemessage '' is added to all the modelandview in all the methods for any requests of this controller . therefore , we can use this object attribute in any jsp page that methods of this controller redirect to . check the admissionsuccess.jsp for details . concode_field_sep PlaceHolder placeHolder concode_field_sep ModelAndView getAdmissionForm concode_elem_sep ModelAndView submitInfoUsingModelAttribute