Description: Spring Framework MVC implementation
1) Spring MVC architecture
C controller part: DispatcherServlet, Controller
M model part: ModelAndView, ModelMap, entity classes
V view section: JSP, spring tags
2) understand the Spring MVC workflow
a. client browser sends an HTTP request to arrive DispatcherServlet controller
b.DispatcherServlet controller calls HandlerMapping map processor, upon request, call the appropriate Controller components.
c. perform the contract in the Controller method, call the Service or DAO components to complete the request processing. Return a ModelAndView object
d. controller calls ViewResolver view resolvers, view resources defined View
To Search:
File list (Check if you may need any files):
springmvc
.........\.classpath
.........\.myeclipse
.........\.mymetadata
.........\.project
.........\spring-mvc.jpg
.........\spring06.txt
.........\src
.........\...\applicationContext.xml
.........\...\tarena
.........\...\......\action
.........\...\......\......\LoginController.java
.........\...\......\......\ToLoginController.java
.........\...\......\......\WelcomeController.java
.........\...\......\entity
.........\...\......\......\User.java
.........\WebRoot
.........\.......\index.jsp
.........\.......\META-INF
.........\.......\........\MANIFEST.MF
.........\.......\WEB-INF
.........\.......\.......\classes
.........\.......\.......\.......\applicationContext.xml
.........\.......\.......\.......\tarena
.........\.......\.......\.......\......\action
.........\.......\.......\.......\......\......\LoginController.class
.........\.......\.......\.......\......\......\ToLoginController.class
.........\.......\.......\.......\......\......\WelcomeController.class
.........\.......\.......\.......\......\entity
.........\.......\.......\.......\......\......\User.class
.........\.......\.......\jsp
.........\.......\.......\...\login.jsp
.........\.......\.......\...\ok.jsp
.........\.......\.......\...\welcome.jsp
.........\.......\.......\lib
.........\.......\.......\web.xml