the other day a frnd of mine has asked me:
"Could you comment on Why MVC Architecture like Struts,
Spring are better than simple JSP-Servlet applications? Since
JSP-Servlet is bit easy, faster, user friendly etc."

though we've been know'g the answer since ages but still I felt that there is more to it:
why to opt for MVC than plain jsp-servlet based is what I felt the question should be framed to (plz don't consider struts/ spring i'll come to that later **)
--> centralised control or gateway(Servlet Centric vs Page Centric)
--> modularisation
--> layered architecture, hence no dependcencies(eg: in a team where
they've specialised web designers/ develoopers java developers are
still independent to code the controlers & write the business logic)
--> for bigger n complex application archtecture, maintenance is a
pain

now coming back to struts / spring...
ther are not MVC but implementing MVC architecture, which aint
mandatory
u might even use incorporate jsp/ servlet into MVC arch to create ur
own customised arch along with javabeans/ TO/ VO or diff design
patterns

but then why do frmwrks alike struts n spring do survive...
--> easy to configure(xml based single point entry)
--> easily wired with dao/ business tier
--> integration to hibernate, toplink, ejb, or differnt components are
made easy
--> spring has got internal components for entire N tier arch.. :)

Prakash Boda
12/2/2009 09:51:27 pm

I think your answer is perfect.

Reply
Amiet
12/3/2009 08:57:39 am

Here are some really nice articles on same topic

http://java.sun.com/blueprints/patterns/MVC-detailed.html

http://java.sun.com/developer/technicalArticles/javase/mvc/

Reply

Your comment will be posted after it is approved.


Leave a Reply.

    Categories

    All
    5800
    Business Card
    Cardly
    Collaboration Tool
    Fileupload
    Google Wave
    Gtalk
    Java
    Mvc
    Nokia
    Oome
    Servletcentric
    Shortcut
    Struts2
    System
    Website
    Windows
    Zoho

    Archives

    December 2009
    November 2009
    September 2009
    August 2009
    June 2009
    May 2009
    February 2009
    November 2008
    October 2008