aspose file tools*
The moose likes Performance and the fly likes Servlet & jsp or Spring for faster and efficient web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Servlet & jsp or Spring for faster and efficient web application" Watch "Servlet & jsp or Spring for faster and efficient web application" New topic
Author

Servlet & jsp or Spring for faster and efficient web application

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Hello Members

I am working on a web project for a finance company whose functions would be similar to those of banks. i will be using mysql as the database, with hibernate as the orm framework. Will also use SSL. Should i go for simple Servlet & Jsp or Spring framework? (I am having only 45 days to hand over the project)

Please give your suggestions with reasons to support it

Thanks


kunal
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30767
    
156

Kunal,
The right decision is based on many factors. For example, what is your comfort level with Spring. If you've never used it before, writing a project in a new technology in a month and a half by yourself, isn't a good idea.

If you are comfortable with Spring, use it. It will help you develop faster leaving you more time to find the performance bottlenecks in your code.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks for your reply Jeanne Boyarsky
Frankly speaking, last time i had worked with spring was about 1.5yrs back.

So, i think it would be better to use jsp servlet
Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 163

I agree with Jeanne, but I would also consider the maintenance factor like: does your enterprise use spring (or JSP or any other technology) a lot? If they do, this could be also a good choice due other people might also work in this project or even have to maintain the code later.

Regards!
Luan


Please, visit me for some cool tech post at www.ourdailycodes.com
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
Kunal Lakhani wrote:So, i think it would be better to use jsp servlet

That may be the right decision, but note that this discussion here is much too superficial to support it. Unfamiliarity with a framework is a good reason not to use it in a time-constrained project, but as the others said, there are a lot more factors to consider, many of which are so specific to your circumstances that it would not make sense for anyone here to advise one way or another. Performance of the web app in particular is not a good reason: neither a Spring web app, nor a pure Servlet/JSP web app, is inherently faster than the other. It's possible to create both slow and fast web apps with either approach.


Ping & DNS - my free Android networking tools app
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
If you use plain JSP and servlets you will have to solve many problems that modern day frameworks have inbuilt solutions for. Your solutions may be just as efficient theirs but personally I would prefer writing more business logic than spending time solving technical problems that have been solved by some frameworks.
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks to all of you members.

I am using Servlet jsp as i dont have enough time to dive in with spring.
May be, later on, i may use spring in a no time-constraint project
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet & jsp or Spring for faster and efficient web application