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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:05:12+00:00 2026-05-13T02:05:12+00:00

I am looking into the MVC from a Command line point of view (not

  • 0

I am looking into the MVC from a Command line point of view (not web and no framework).. nice and simple. the only thing that confuses me is the View part of this? (well it may not be the only but its the main one)

from the IBM site the view has the following definition

The view provides the
presentation of the model. It is the
look of the application. The view can
access the model getters, but it has
no knowledge of the setters. In
addition, it knows nothing about the
controller. The view should be
notified when changes to the model
occur.

So if i have the following:

Model

  • Person

View

  • EditPersonDetails

Controller

  • PersonController

My person controller could pass a person object to the EditPeronDetails view, however how does my view edit the person if it cannot access its setters, how can i edit the person?

Also does the view class only do one thing? ie can I have a Person View, which has methods for Create, View, Delete, edit the person

many thanks

bones

  • 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-13T02:05:12+00:00Added an answer on May 13, 2026 at 2:05 am

    Is it really necessary to apply a 3 letter acronym here? if you must:

    1. user sees the console screen, which shows the view (lines of texts)
    2. user types something on command line, which is an even from view
    3. controller gets the event, i.e. the user input
    4. controller does something accordingly, and updates the model (persons)
    5. controller tells the view to repaint, i.e. print some more lines.

    psuedocode:

    Person // model
       update();
    
    View
       modelUpdated()
           println(Person.name); ...
    
    Controller
         main()
             while( input = getInput() )
                 person.update(...);
                 view.modelUpdated();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently started looking into building web applications using .NET MVC and I stumbled
I've been looking into view models for mvc and I'm looking for the best
I'm looking into ASP.NET MVC, and whether or not to make the switch. One
So I'm looking into writing some custom MVC extensions and the first one I'm
I am looking into creating an Entity Framework 4 generic repository for a new
I'm fairly new to Zend Framework and MVC in general so I'm looking for
I looking into the concept of queueing for web apps (i.e. putting some types
Looking to create my first MVC application. Coming from WebForms I'm pretty excited to
I want to use NVelocity from plain ASPX pages without using any MVC framework.
I'm looking into using Domain Events to bubble information from operations occuring deep inside

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.