GeeCON Prague 2014*
The moose likes Servlets and the fly likes Need advice Servlet or Spring MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Need advice Servlet or Spring MVC" Watch "Need advice Servlet or Spring MVC" New topic
Author

Need advice Servlet or Spring MVC

shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 147
Hi Friends,

I have an application in mind which I want to develop. I am targeting the application for a big user base, consider it as
a social app. But I am not
sure whether to write it with Servlets or Spring MVC.
I have a good grip on Servlets, it would be easy for me to develop, but when it comes to Spring I am still novice.
I am not clear what difference would it make if the app is developed on Servlets rather than Spring MVC.
Scalability or some factors like that?

Any advice would be appreciated. Thanks
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1106
    
    1

I guess , it is difficult to compare Servlet and Spring MVC.
Also Spring MVC comes with many out of box features which you will have to write on your own in Servlets.
Scalability more depends on choice of App Design (Clustering, Load balancing etc) and Hardware design.

~ abhay

David Blaine
Ranch Hand

Joined: Mar 23, 2013
Posts: 70
Abhay Agarwal wrote:I guess , it is difficult to compare Servlet and Spring MVC.
Also Spring MVC comes with many out of box features which you will have to write on your own in Servlets.
Scalability more depends on choice of App Design (Clustering, Load balancing etc) and Hardware design.

~ abhay



What are the these features ? If the OP does not need all or most of those features, then he/she will probably want to use Servlets and JSP instead.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

The number of users is not a criteria for choosing any particular technology/framework.
It should always be part of the design. Also as suggested above knowing what you really want is more important than what the framework caters.

SCJP, SCWCD.
|Asking Good Questions|
Prashant Hurria
Ranch Hand

Joined: Mar 23, 2009
Posts: 40
I would strongly recommed using a MVC framework life Struts,Spring MVC (Spring MVC preferably).It can help you with features like error handling , integrated tag libraries form commonly used tasks , templating , navigation control etc. . You surely can do the same thing writing your own code but do you really want to reinvent the wheel. I would be ok with plain servlets for a small Proof Of Concept , demo application but if it is an application with hundereds of pages you will end up either with duplicated spagetti code or reinventing what the MVC framework already provides you.
 
GeeCON Prague 2014
 
subject: Need advice Servlet or Spring MVC