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

  • Home
  • SEARCH
  • 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 7184581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:13:52+00:00 2026-05-28T18:13:52+00:00

Form1 gets a request to perform some action. Form1 sends the request to my

  • 0

Form1 gets a request to perform some action. Form1 sends the request to my business logic class. If there’s some error in the request, a notification is sent back to View1 and he presents an error message. If there is no error in the request, a new view must be created.

Who creates the new Form? Do I notify Form1 and have him create Form2? Does the business logic class call the Form2 constructor?

  • 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-28T18:13:54+00:00Added an answer on May 28, 2026 at 6:13 pm

    In the Model View Controller (MVC) design pattern the controller would create the new view. Using this paradigm the controller would receive the request from the view (i.e. Form1) and send it to the correct model (i.e. business logic class). Depending upon the results from the model the controller would either send a message back to Form1 or create a new view in Form2. This is a cleaner separation of concerns.

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

Sidebar

Related Questions

Pls check code .html form gets submitted even if javascript returns false. <form id=form1
I have a form that sometimes gets linked to with some query string parameters.
When a form gets posted, I get some checkbox values like the below: Array
All, When a form gets posted, I get some checkbox values like the below:
I have a form of following structure ROR code form_tag class='remote_form' remote=>true { some
I've got a page where I have a form that gets sent on to
Ok I am trying to get the users First Name the form gets their
I have a basic HTML form that gets inserted into a server side div
We have a web application that is based around a form that gets passed
I am currently trying to write functional tests for a charging form which gets

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.