*
The moose likes Struts and the fly likes justify answer  on mvc design pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "justify answer  on mvc design pattern" Watch "justify answer  on mvc design pattern" New topic
Author

justify answer on mvc design pattern

venkat lakkakula
Greenhorn

Joined: May 03, 2007
Posts: 2
1. in mvc design pattern which all of following true
a.controler is always a servlet implementation
b.view can be a set of html files
c. model is data repository
d. all
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

Please read this.
[ May 06, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
While we're generally opposed to just handing out answers to homework or interview questions, we don't mind helping out a bit. First, tell us what you think the answer to this question is and why, and then we'll let you know if you're on track or not.


Merrill
Consultant, Sima Solutions
nikita mishra
Greenhorn

Joined: Feb 09, 2010
Posts: 12
I know its old thread but I want to know whether i am on the right track. I think the answer would be only b.

a) False. Controller can be implemented using jsps also
b) True. Set of Htmls can be cinsidered view
c) False. Model is not a data repository. It consists of business logic and Data access & storage logic.

I hope I am right.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

nikita mishra wrote:a) False. Controller can be implemented using jsps also

Well, it can be done using JSP but doesn't mean its correct as far as MVC2 is concerned. JSP aren't mean to control the web flow. How about the complicate/delegate flow statements in JSP scriptlet.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: justify answer on mvc design pattern
 
Similar Threads
MVC - A PATTERN OR A FRAMEWORK?
Struts selection
Where to go from here?
difference between mvc and mvc2 ??
design patterns to separate the task of writing the GUI screens and business logic