Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 65116
89
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic