aspose file tools*
The moose likes JSF and the fly likes Advantages of JSF over struts.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Advantages of JSF over struts.." Watch "Advantages of JSF over struts.." New topic
Author

Advantages of JSF over struts..

pulijala hari
Ranch Hand

Joined: May 14, 2005
Posts: 70
Hi,

Can any one tell me what advantages JSF brings over Struts.
I am really not feeling comfortable with the Event driven coding in JSf..,
Is it really an edge over Struts..
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

I'll just point out two

1. JSF is a specification/standard, Struts is not.
2. JSF Spec Lead is the guy who created Struts. And did so trying to fix what he did wrong in Struts.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Mark Spritzler:
I'll just point out two

1. JSF is a specification/standard, Struts is not.
2. JSF Spec Lead is the guy who created Struts. And did so trying to fix what he did wrong in Struts.

Mark


So will he eventually fix what he did wrong in JSF? ;)


GenRocket - Experts at Building Test Data
Gabriel Claramunt
Ranch Hand

Joined: May 26, 2007
Posts: 375

I'll point to another 2:
(AFAIK, I don't have too much experience with Struts)
1) JSF lifecycle is not tied to the request-response cycle
2) You can map screen components to individual beans, in Struts you have to map to the Form class.

(please correct me if I'm wrong)


Gabriel
Software Surgeon
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Originally posted by Gregg Bolinger:


So will he eventually fix what he did wrong in JSF? ;)


We hope so. Especially if you have to dynamically build your JSFUI Tree from code.

Mark
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

To be precise, the #1 advantage of JSF over Struts is that it takes something like 5 Struts source files to do what JSF can do in 2, and the JSF source files are simpler - few special functions, no magic classes to extend or interfaces to implement.

It's also more of a "pure" MVC architecture than Struts, although true MVC is architecturally impossible under HTTP. Not that purity is in and of itself a virtue, but it does make it easier to understand what's supposed to be going on.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Advantages of JSF over struts..