sunflower_rahul
Jan 23rd, 2010, 08:51 AM
Hi,
As i am new to Spring , i would like to know difference between the @ModelAttribute, ModelMap, ModelAndView.
As i am going to use Annotation Controller in my project.
But still i have confusion.
1) Difference between @ModelAttribute and ModelMap
2) Difference between @ModelAttribute and ModelandView
3) Difference between ModelMap and ModelandView
4) When to use above three Models
5) For @SessionAttribute, what type of Model to use.
6) There is a command object,which is for Jsp View,used to form submit,What to use for that @ModelAttribute or ModelMap.
7) When GET or POST RequestMapping called, Still i have confusion, because, whenever i tried to call the controller,it search for GET Method. But i am going for multicontroller(annotation), then it won't call. Its works without declaring the RequestMethod=GET.
Please clear my doubt.
Do we can integrate the Spring MVC with GWT or any scripting language or Adobe Flex...
Please do reply me , lot of question is rising in my brain.
Rahul...
As i am new to Spring , i would like to know difference between the @ModelAttribute, ModelMap, ModelAndView.
As i am going to use Annotation Controller in my project.
But still i have confusion.
1) Difference between @ModelAttribute and ModelMap
2) Difference between @ModelAttribute and ModelandView
3) Difference between ModelMap and ModelandView
4) When to use above three Models
5) For @SessionAttribute, what type of Model to use.
6) There is a command object,which is for Jsp View,used to form submit,What to use for that @ModelAttribute or ModelMap.
7) When GET or POST RequestMapping called, Still i have confusion, because, whenever i tried to call the controller,it search for GET Method. But i am going for multicontroller(annotation), then it won't call. Its works without declaring the RequestMethod=GET.
Please clear my doubt.
Do we can integrate the Spring MVC with GWT or any scripting language or Adobe Flex...
Please do reply me , lot of question is rising in my brain.
Rahul...