File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts vs JSF, etc 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 » Frameworks » Struts
Bookmark "Struts vs JSF, etc" Watch "Struts vs JSF, etc" New topic
Author

Struts vs JSF, etc

Jennifer Zhu
Greenhorn

Joined: Jan 26, 2010
Posts: 1
Hello,

I am seeking advice on what web technology we should use for one of our projects. We have a couple of months to development the front end.

I have tried Struts 1.0 and it worked fine. However, I am concerned it is a bit old and don't want to build a new project on an old technology. I know struts 2.0 is out there. Just wonder if you have any opinions on struts vs JSF. Or, any other good framework worth pursuing?

BTW, I am kind of new to web development though I am familiar with basic J2EE concepts and have programed in Java and C++. I am ok with JSP too. I am looking for a relatively robust technology that may have a long-life down the road.

Thanks in advance!

Jen
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9304
    
  17

"Nn Zz" please check your private messages for some administrative matter...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Bhagat Singh Rawat
Ranch Hand

Joined: Apr 04, 2009
Posts: 93
My Vote for JSF.

Please go through the following links:
Craig McClanahan: Struts Or JSF? Struts And JSF? : Craig Mcclanahan, creator of Struts and co-spec lead for JavaServer Faces.
Why JSF?
Compare JSF and Struts

Brainbench Java 2.0 Fundamentals, J2EE 1.4
http://www.brainbench.com/transcript.jsp?pid=8192792
suresh dasari
Ranch Hand

Joined: Oct 05, 2009
Posts: 121

Ankit,

Could you please share your thoughts with respect to Struts vs JSF --- which one is the best choice?


Sun Certified Java Programmer with 93 percent
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9304
    
  17

suresh dasari wrote:Ankit,
Could you please share your thoughts with respect to Struts vs JSF --- which one is the best choice?

My vote would be biased, because I've never used JSF, neither do I know much about it. So I would say struts...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I wouldn't use JSF without using Seam. That's a steep learning curve for a few months. I'm not a huge JSF fan--if you're going for an action-style web framework I'd lean towards Struts 2 or Spring MVC.
suresh dasari
Ranch Hand

Joined: Oct 05, 2009
Posts: 121

But according to me, JSF having many advantages over struts.
by using JSF you will have more flexibility, you can design your own custom components based on the requirement.
Struts is just and MVC framework, where as JSF is even more.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

In my opinion, these discussion are tired and redundant. Searching this site will provide you with plenty of "this vs that" discussions that generally lead to a bunch of people say "I prefer technology XYZ" and "technology ABC sucks". If you truly want to know which is better suited to your project I'd recommend writing a couple of simple applications in both frameworks and see which is better for you.

And for what it's worth...I primarily use Grails. Stripes when I need something less. And Struts and JSF suck!!! ;)


GenRocket - Experts at Building Test Data
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

We'll have to agree to disagree. I use components (primarily Ajaxified) in my S2 and Spring MVC apps as well, and JSF is positively painful without Seam.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts vs JSF, etc