• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Need advice Servlet or Spring MVC  RSS feed

 
Ranch Hand
Posts: 159
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!