• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Struts and JSF

 
Ashwini Pathak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 50196
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 859
Chrome IBM DB2 Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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.

 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everyone for your reply .
 
Ashwini Pathak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

In case of JSF , does it impact scalability of the application as JSF maintains the state of each UI component?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic