Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. An MVC concern

An MVC concern

Scheduled Pinned Locked Moved Java
javaasp-netarchitecturequestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Neo10101
    wrote on last edited by
    #1

    I noticed in one of my professor's MVC Java programming projects he put a Controller class inside a model package. Is it true that in MVC often people use just MV and don't bother with the C because they don't think it's worth creating another layer just for a couple of extra classes? It seemed illogical to me to put a controller inside a model package.

    L T 2 Replies Last reply
    0
    • N Neo10101

      I noticed in one of my professor's MVC Java programming projects he put a Controller class inside a model package. Is it true that in MVC often people use just MV and don't bother with the C because they don't think it's worth creating another layer just for a couple of extra classes? It seemed illogical to me to put a controller inside a model package.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Why are you asking here, and not discussing this with your professor?

      1 Reply Last reply
      0
      • N Neo10101

        I noticed in one of my professor's MVC Java programming projects he put a Controller class inside a model package. Is it true that in MVC often people use just MV and don't bother with the C because they don't think it's worth creating another layer just for a couple of extra classes? It seemed illogical to me to put a controller inside a model package.

        T Offline
        T Offline
        TorstenH
        wrote on last edited by
        #3

        You can split Control and View by doing that. It has several advantages: one of the biggest to me is, that I can change the view without touching the behavior of the UI. I can also use one Controller for several Views, which gives me more control about what's happening. But I also use just MV, addressing anonymous event listeners in the view's code. Mostly on dialogs or when "quick&dirty" is required.

        regards Torsten I never finish anyth...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups