Flow of Spring Web MVC
1) While developing
Spring Web MVC application DispatcherServlet class must be configured in
web.xml file with the url-pattern *.htm
2) Each form submission
made from client must contain action path suffixed with .htm
3) Such requests are
submitted to DispatcherServlet
4) DS instantiates
SpringContainer (dispatcher-servlet.xml)
5) lookup for the bean
named "urlMapping", resolves "action path" with "bean
id"
6) lookup for the bean
with id
7) Instantiates
Controller class, invokes setter injection methods and finally invokes
handleRequest method
8) As soon as
SpringController returns ModelAndView object
9) DS resolves prefix
and suffix names of view, prepares fully qualified name of view and redirects
respective document to browser
No comments:
Post a Comment