Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4602566
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:00:21+00:00 2026-05-22T00:00:21+00:00

If you look at the Java EE FrontController sequence diagram, the Controller delegates the

  • 0

If you look at the Java EE FrontController sequence diagram, the Controller delegates the request to Dispatcher and the document says that:

A dispatcher is responsible for view management and navigation,
managing the choice of the next view to present to the user, and
providing the mechanism for vectoring control to this resource.

In Spring MVC, the DispatcherServlet acts as FrontController (as mentioned in Book by Craig Walls), and this Servlet delegates the request to other controllers that in turn calls appropriate Service class (for processing the request) and then returns an instance of ModelAndView to DispatcherServlet again.

So roughly this is how request usually travels:

Client -> DispatcherServlet -> Controller -> Service -> DAO

If you compare this flow with Java EE FrontController pattern sequence diagram, it appears that DispatcherServlet is not true FrontController.

What do you say about this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:00:22+00:00Added an answer on May 22, 2026 at 12:00 am

    I would say that the DispatcherServlet fills the rolls of the front-controller and dispatcher. However, rather than delegating directly to the view the DispatcherServlet delegates to another controller. This enables you to better separate your presentation from your business logic. In the “pure” front-controller paradigm, you might have to add some business logic to your views.

    In short, the DispatcherServlet accomplishes the same goals as the Front Controller pattern. But it does deviate from it slightly by allowing you to add another layer of controllers to the dispatcher. I think this is a good thing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Java, it would look like this: class Foo { float[] array; } Foo
I'm writing a Java Swing application using the Metal look-and-feel. Every time there is
Delegates look like such a powerful language feature, but I've yet to find an
I recently switched one of my static html files to a Spring controller that
When I look at Java frameworks like Hibernate, JPA, or Spring, I usually have
I tried to look at Java's String#intern() method, but it's public native String intern();
I want to override java look and feel. I just want to show the
Lately i decided to take a look at Java so i am still pretty
I'd like to learn more about developing a Java look and feel. Could anybody
I'm coming from a c# background, how do generics look in java compared to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.