File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Jobs Discussion and the fly likes Which java MVC Framework is being used most ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Careers » Jobs Discussion
Bookmark "Which java MVC Framework is being used most ?" Watch "Which java MVC Framework is being used most ?" New topic
Author

Which java MVC Framework is being used most ?

vijin das
Ranch Hand

Joined: Jun 07, 2010
Posts: 129

Which java MVC Framework is being used most ??

1)Struts 1.x
2)Struts 2.x
3) Spring
4) Any Other

Which MVC frame work is been Used most......

VIJINDAS
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30753
    
156

I'm thinking #1 and #3. I pick #1 and #2 over #3 due to the large amount of "legacy" projects created when Struts 1 was most popular.


[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
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

I doubt anyone can answer this. What we can tell you is what we encounter at work.

I have dealt with a lot of #1, a little of #2 and none of #3. Whatever happened to JSF ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Sandeep Awasthi
Ranch Hand

Joined: Oct 23, 2003
Posts: 597
Struts 1.x is still most widely used MVC framework. Struts2, I doubt if many people will use it at this stage because of it's problem with performance, it's tag library at least I did not find it as easy as it was in struts 1.x and for people who are migrating from Struts 1.x to Struts2.x the concept value stacks all those things. Spring MVC, I did not find any problem with it except no good book, insufficient documentation.
JSF is not request/response MVC. It is component framework based on events like Swing. Though JSF is popular but learning curve is very big. Sometime back I read a debate about JSF vs Wicket in some forum, both have their plus and minus. Hope this helps.


Sandeep
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3223
If you are asking from an employability perspective, check a few local online advertisements to see what the prospective employers are looking for?

You can't go wrong with struts 1.x. It is easy to learn.


Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
Sandeep Awasthi
Ranch Hand

Joined: Oct 23, 2003
Posts: 597
arulk pillai wrote:
You can't go wrong with struts 1.x.

+1
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

Sandeep Awasthi wrote:
arulk pillai wrote:
You can't go wrong with struts 1.x.

+1


Struts 1.x has some serious deficiencies (who wants to write form beans?). It is popular simply because it was first out of the gate. If you are developing new software, you are doing yourself a disservice by not using a more modern framework like Struts 2, Stripes, Spring and so on.
This article gives some insight into the popularity of various Java web frameworks. It's from 2008, but if you click on the graphs, you get the up-to-date versions.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Struts 1.x has some serious deficiencies (who wants to write form beans?).


This is only an opinion. Struts does what it needs to and nothing more. It all comes down to how to write code and how you implement loose coupling between the Struts parts and the Model parts. Typically problems stem from "how" the developer created the application rather than the framework itself.

As an example, in Struts 1.x you DON'T have to write Java code for ActionForm objects (beans). All you need for creating the bean is to specify the fields in the configuration file. See below:


Sandeep Awasthi
Ranch Hand

Joined: Oct 23, 2003
Posts: 597
Joe Ess wrote:
Sandeep Awasthi wrote:
arulk pillai wrote:
You can't go wrong with struts 1.x.

+1


Struts 1.x has some serious deficiencies (who wants to write form beans?). It is popular simply because it was first out of the gate. If you are developing new software, you are doing yourself a disservice by not using a more modern framework like Struts 2, Stripes, Spring and so on.
This article gives some insight into the popularity of various Java web frameworks. It's from 2008, but if you click on the graphs, you get the up-to-date versions.


You will find many articles which will compare these frameworks. But I have actually done POCs with Spring MVC , Struts 2. and JSF. Struts1.x I have worked many projects. It depends on your requirement. If you want to use XSL,Velocity,Web 2.0, yes modern frameworks are better choice. But Struts 2 had performance problem. You will find many links like this. You do not even have to measure it's performance. You can feel it immediately.

As I said +1 for Struts1.x because ease of use, ease of learning, many books available, easy to find developers for it. And it does not have serious deficiencies otherwise so many projects successfully running on it would not have been possible.
XSL yes you can use XSL with struts 1.x as well. Stxx
Web 2.0, yes it can be used.
JSF as I said more popular these days because it is component based framework. But learning curve is high. I do not know complete JSF. But I agree it is more popular.
Spring MVC not enough documentation. It also has one more problem is it's tag library support is too small as compared to Struts 1.x. Validation, in the beginning you will get tired to show proper validation message, you will have to search on google many times to get it right. So investment of time is high.
If you are not using fancy XSL, Velocity,FreeMaker and use plain JSP and tiles template, well Struts 1.x has already proved it self in the market. You can even use XSL with Struts 1.x as I said above.

If I have to choose web framework, I will not go and check every framework listed here. Instead I will check for what I am going to use this project, what is my requirement and will choose the framework which is already proved it self. It does not mean I will stick to Struts 1.x, but I will think on other factors too like investment of time, risk involved , availability of developers.

I agree Struts 1.x has become old as compared to modern frameworks. But it is still something which can not be ignored completely. It has many positive things. And all it depends on what is my requirement.

sriram sankar
Ranch Hand

Joined: Feb 26, 2008
Posts: 43
JSF + SEAM is a good combo. I feel like the learning curve is not that bad. Also Java EE6 embraces lot of features from SEAM including CDI.


SCJP 1.5 , SCBCD 5.0, SCEA 5.0
Sandeep Awasthi
Ranch Hand

Joined: Oct 23, 2003
Posts: 597
JSF and Seam can be good choice if your objective is job market.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

The OP asking which Java MVC framework is being used the most, he doesn't care if Seam+JSF is a good combo.
Not to mention Seam+JSF isn't MVC framework any way...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which java MVC Framework is being used most ?