• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

MVC Question

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Guys,
I have a utility class in my model. Where does it fit into the MVC model. Can i put it under the controller section. I am using Rational Rose and i must put the class under one of model/view/controller folders....
I would appreciate any info in this regard.
AK
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It should go into a different box down the boxes in the middle layer/tier.
 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ajit Kumar:
hi Guys,
I have a utility class in my model. Where does it fit into the MVC model. Can i put it under the controller section. I am using Rational Rose and i must put the class under one of model/view/controller folders....
I would appreciate any info in this regard.
AK


Do you think your Uility class is re-usable for other projects in the future? If so, try not to put in at the Controller layer.
If you feel the Utility class is more for the Model layer, then put it there. The same case for View layer.
If your Utility class is of use by all the 3 layers, ...hmm, maybe you should consider breaking the Utilitiy to 3 different utility classes.

------------------
Thank you.
- Simon See
simon-ivy@usa.net
-after office hours-
necro-mani-cide
 
We're being followed by intergalactic spies! Quick! Take this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic