Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "justify answer  on mvc design pattern" Watch "justify answer  on mvc design pattern" New topic

justify answer on mvc design pattern

venkat lakkakula

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

Joined: Jan 10, 2002
Posts: 62298

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.

Consultant, Sima Solutions
nikita mishra

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

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]
Have you tried LearnNowOnline?
subject: justify answer on mvc design pattern