Reputation: 10082
I am very new to Spring MVC. I have read a lot about it,but cant grab the exact flow of Application written in Spring MVC. Please if possible give me a highlevel view of flow of the application, may be with example of login application.
There are files like
Web.xml- According to my findings this file configures dispatcher
dispatcher-servlet - this file consist bean tags for dispatching the request to particular controller.
ApplicationContext.xml- I cant understand working of this file.
What exactly is difference of normal java Application and Spring MVC application.
Upvotes: 1
Views: 2367
Reputation: 6236
Upvotes: 0
Reputation: 10082
After reading some tutorials I understood what Spring MVC is. When any Web Application starts,it first loads welcome page,may be index.jsp which will redirect me to the start page(may be login) from a folder under /webcontent/Web-INF/jsp. Now the login request will be given to Dispatcher-servlet.xml whihc will find out the appropriate controller from the bean defination and handover control to login_controller where we might carryout userid and password check. And as per the condition we get either successView or FormView(i.e login page). We use ParametirazableViewController to display the static content on the page.
PS: I have considered a normal login example.
Upvotes: 2