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 8830691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:09:10+00:00 2026-06-14T08:09:10+00:00

I try understand architecture MVC for a Java Web App, I am doing a

  • 0

I try understand architecture MVC for a Java Web App, I am doing a project where I try implement it. But I have a doubt. I have a HTML form (View) where users input some data. This form will have to send to a servlet (Controller) which updates a Java Bean (Model). At here all fine.
But, what happen when the form input data affects two or more models? How is have to be the controller responsable about manage this models?

Because I think only can exists 1 Controller – for – 1 Model ¿What is the pattern for that?

  • 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-06-14T08:09:11+00:00Added an answer on June 14, 2026 at 8:09 am

    I would do just the opposite:

    1 view has 1 controller and can talk to one or multiple models.It makes sense to me as the model is long living and the views can easily be replaced, but when you replace a view you will have to replace it’s corresponding controller.

    In your specific case this means that your HTML can post to a servlet that can process the http POST made, and communicates this to the different models.

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

Sidebar

Related Questions

I'm working on CSS and HTML to try understand position and floats. I have
I try to understand hibernate but it is very hard. I have a problem
I have a solution with the following architecture MVC app > Services > Repositories.
I try to understand the ICommand from wpf. In my Event class I implement
Please Try to Understand my curiosity Suppose there is a web application that has
I try to understand the main differences between MVC / MVP and MVVM patterns.
there is something I try to understand. I have this object declaration in my
I try to understand a visual studio project, which I had downloaded. There are
I try to understand how the jQuery Object Accessors index() works. But I don't
I have a little question, I try to understand how to save a file

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.