A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Nov 02, 2007
Mar 26, 2008 00:38:00
In a architecture
like MVC, it is mandatory that
be the controller, why not
Joined: Jul 23, 2007
Mar 26, 2008 03:11:00
Their are couple of reasons for using servlet and not jsp as controller component.
1) JSP should not include the
code which is the integral part in building the controller as you need to perfrom various checks on in coming request.
2) JSP is meant for the developers which need not have the java knoeledge
3) Your controller intracts with your model and hence not directly accessed from the browser which is not the case with the JSP
Joined: Feb 08, 2006
Mar 26, 2008 09:31:00
I started to type up a response but the following article (almost 10 years old) does a better job:
Nothing is "mandatory" but if you have ever worked on a project with 2000 line JSP files you will know how hard they are to develop, debug and maintain.
I agree. Here's the link:
subject: In MVC
Design pattern question
MVC - A PATTERN OR A FRAMEWORK?
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014