This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC-Central controller help needed

 
vidya vani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can any one explain me what is the central controller in Model-View-Controller design pattern...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean by central controller. Did you mean front controller?

In any case, perhaps this article might help.
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
I'm not sure what you mean by central controller. Did you mean front controller?

In any case, perhaps this article might help.


I Think you had asked about the servlet conttroller,
In MVC Pattern the controller is Servlet, if any request comes from
client first it hits the servlet controller after that it will navigate
to JSP's
 
Kumar Garlapati
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean it as a Controller in MVC, it's a central part of the MVC architechture, which gets the request from client, find out which Model(Business Logic) to process the request and in return it finds out which JSP has to be returned. if any error/exception occurs it forwards to error.jsp(example) else it forwards to appropriate JSP(View). Hope this explaination helps you. this you can get in google as well or in anybook.

what you exactly mean by central in you question.
 
vidya vani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thankyou for the detail regarding the central controller.
But in MVC architecture there will be a servlet controller which contains helper classes.Now how should i have to make the servlet controller using Map classes.
Please anyone can help me
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic