aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes MVC - are JSPs view or controller ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "MVC - are JSPs view or controller ?" Watch "MVC - are JSPs view or controller ?" New topic
Author

MVC - are JSPs view or controller ?

Gagan Indus
Ranch Hand

Joined: Feb 28, 2001
Posts: 346
Hi
in MVC pattern , where does the JSPs/servlets fit in ?
are they View or are they controller ?
I guess controller


------------------
Gagan (/^_^\) SCJP2
Die-hard JavaMonk -- little Java a day , keeps u going .


Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>
Rishi Singh
Ranch Hand

Joined: Dec 09, 2000
Posts: 321
Hi Gagan,
In MVC Servlets takes the role of a Controller and JSP of a View.This is the case if your application is a combination of JSP/Servlets.As JSP can be used at evry place where a servlet is used in that case, both the controller and the view are JSP.
morph wang
Ranch Hand

Joined: Aug 23, 2001
Posts: 38
according JSP Model 2 architecture,
the three tier of MVC:
JSP ------> View
Servlet ------> Controller
JavaBean ------> Model
Ref: http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html


<todo>
Gagan Indus
Ranch Hand

Joined: Feb 28, 2001
Posts: 346
thankxx Rishi n Morph
things are certainly getting clearer now
------------------
Gagan (/^_^\) SCJP2
Die-hard JavaMonk -- little Java a day , keeps u going .
 
 
subject: MVC - are JSPs view or controller ?