This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Difference between Struts and JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Difference between Struts and JSF " Watch "Difference between Struts and JSF " New topic
Author

Difference between Struts and JSF

Ashwini Pathak
Greenhorn

Joined: Jul 03, 2012
Posts: 4
I am going to design a new web application with mainly following requirements.
1) Presentation layer should be simple .
2) There will not be much validations at the Presentation layer.

For this application design , I need to compare Strust and JSF framework on following criteria.
1)Modularization
2)Maintanibilty
3)LightWeight
4)Scalable
5)Ajax framework
Can anyone help me on this .
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38031
    
  22
Welcome to the Ranch

That sounds like a final-year project, and is also too difficult for this forum. I shall move the discussion and hope I move it to the right place
Ashwini Pathak
Greenhorn

Joined: Jul 03, 2012
Posts: 4
Its not the final year project. Am a working professional, but I am really not getting the actual pointers to compare these two frameworks on the mentioned ponits. Some people must have experienced the pros and cons of this frameworks while working , I am new to both so cant compare
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

Struts(2) is more of an MVC pattern, and relies on actions,controllers,interceptors etc.
Using Ajax or such with JSP pages is perfectly doable also.

JSF is primarily a component driven architecture, where pages consist of independent "units" with one or more backing beans.
The lifecycle is quite interesting. It also has tremendous Ajax support for partial page refreshing.


You can actually combine the two, or better yet use JSF with Spring MVC !!

WP
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

@William Thanks for your inputs

JSF Features
where pages consist of independent "units" with one or more backing beans.
The lifecycle is quite interesting.

I was recently started working on JSF I found JSF very similar to Struts2.
Can you please explain the above points briefly.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

There are plenty of resources out there.

I will not do your research for you.

Any modern framework will satisfy your 4 needs, if you utilize it properly.

WP
Ashwini Pathak
Greenhorn

Joined: Jul 03, 2012
Posts: 4
Thanks everyone for your reply .
Ashwini Pathak
Greenhorn

Joined: Jul 03, 2012
Posts: 4
Hi Everyone,

In case of JSF , does it impact scalability of the application as JSF maintains the state of each UI component?
 
jQuery in Action, 2nd edition
 
subject: Difference between Struts and JSF
 
Similar Threads
Design Pattern To Migrate BL As Web Services
getRealPath Depricated?
require short answer
Spring Framework
Does Frameworks Addresses all the issues related to Web Application development