2008 East
DIAMOND SPONSOR:
Data Direct
Frontiers in Data Access: The Coming Wave in Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
Intel
Virtualization – Path to Predictive Enterprise
Green Hills
IT Security in a Hostile World
JBoss / freedom oss
Practical SOA Approach
GOLD SPONSORS:
Software AG
The Art & Science of SOA: How Governance Enables Adoption
PlateSpin
Effective Planning for Virtual Infrastructure Growth
Fujitsu
Automated Business Process Discovery & Virtualization Service
Ceedo
Workspace Virtualization
Click For 2007 West
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
Service Oriented Architecture (SOA) has been discu...
TOP THREE LINKS YOU MUST CLICK ON


JavaServer Faces (JSF) vs Struts
My JSF article series and Meet the Experts appearance on IBM developerWorks received a lot of feedback. I would have to say, the most common question or feedback came along the lines of comparing Struts to JSF.
Reader Feedback: Page 1 of 1

Relating to Doug Smith's question:

Doug, I think you misunderstand MVC. The components are:

Model (data retrieved/manipulated by business rules)
View (responsible for rendering/displaying relevant information to user)
Controller - business logic that operates on/manipulates model to produce data to be displayed by view.

The idea with MVC is not to mix business logic (i.e. Servlets/Struts actions) and presentation logic (jsp/html) in the same artifacts (components), because then you end up not being able to replace/change one without having to replace/change the other.
JSF focuses more on easily developing the View part, while Struts concentrates more on Model and Controller and their integration.

Hi,
Really interesting article.
I have a related question. We have a web acces application based completly on Struts. Now we want to add a new funcionality based on JSF, the question is if we could have integration problems between both tools.
Thanks in advanced

it would be nice to redo this comparison TODAY in 2007 and see what comes out. Struts2 has really added a ton to their side and JSF components have matured.

I would like to see a modern comparison- as there does not seem to be one.

Hi,
Yes JSF is the way to go. The thing which I like the most about JSF is the finer control given by the component based architechture which is the key for RAD tools..like .NET.
Java is up there facing a string competition form .NET but hey JAVA will WIN.

Friends, this is going to sound like a really dumb question, but I am asking in all sincerity.

While I understand the arguments to separate view (screen) from model (database & rules) & control (keyboard), I'm not sure I understand why I need Struts or JSF to do this. I can put code a View as a JSP, interact with the Model using Javabeans, and exercise Control using HTML or JSP directives.

What exactly are the benefits using either Struts or JSF? The cost is obvious - another set of things to learn and configure.

(Asked by a solo practitioner who doesn't work with graphic designers).

Very interesting article, thank you. We are currently working extensively with Struts for the presentation layer and are watching the progress of JSF with much interest because it seems to be the way to go in the long term. There is no doubt that JSF will take over as McClanahan stated himself when he was talking about migrating to JSF.
(see http://www.theserverside.com/news/thread.tss?thread_id=29068). There's no new development on Struts as opposed to JSF which by the way is the answer to MS webforms. So to answer Tom's comment, yes there is overlaping and if you start a new project from scratch and want to compare struts and jsf, roland's article is very insightful. What I would like to point out also is that JSF seem to lack the ease of use and functionnality of webforms, that's why all the new development goes into JSF, there's a lot of catching up to do...

Thanks for the feedback. Craig has a vested interest in both frameworks. There are features in Struts that compliment JSF like Tiles and the Validation framework. But just because they have some areas where they can work together does not mean I cannot compare them both. In this article, I focus on the Core of the frameworks and how they differ. I see very little benefit with the current Struts implementation to mix the Struts controller with the JSF components.

To speak of "JSF vs Struts" displays a lack of understanding of the
different specializations of the two frameworks. JSF specializes in
view, Struts in model and control. The two can be used together via
the Struts-Faces Integration Library. As Craig McClanahan's inaugural
blog post

http://blogs.sun.com/roller/page/craigmcc/20040927#struts_or_jsf_struts_and

points out:

> For new development, here's the best strategy for determining what
> to do:

> * Evaluate the two technologies individually, to see if they satisfy
> your requirements.

> * If one or the other technology is sufficient, go ahead and use it
> (it's easier to learn and use one technology rather than two where
> possible); keeping in mind, however, the caveats about Struts HTML
> tags mentioned above.

> * If your requirements include unique features supported only by
> Struts (such as Tiles or client side validation support), feel
> free to use the two frameworks together.

> The Future

> It should be clear by now that there is overlap between Struts and
> JSF, particularly in the view tier. Over time, JSF will continue to
> evolve in the view tier area, and I'm going to be encouraging the
> Struts community to focus on value adds in the controller and model
> tiers.


FEATURED WHITE PAPERS
YOUR FEEDBACK
Mark Blafkin wrote: IBM's 'newfound principles" may be basically supported by the closed online discussion they sponsored, but they are undoubtedly "inspired" by profit and an effort to regain their stranglehold on standards bodies. If they really cared about improving standards bodies for all stakeholders, they wouldn...
Roberto Campione wrote: Good article, that helped alot. Out of interest - have you any examples of importing templates using xmlaccess?
Java Consultant wrote: Good Post.... Java Developer...
Java Web Development Company wrote: Hi, Good Post.. Thanks
Chris DiBona wrote: You meant charles dibona not chris.
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SYS-CON FEATURED WHITEPAPERS

BREAKING WEBSPHERE NEWS
SSH Communications Security Corp. (OMX: SSH1V), a world-leading provider of enterprise security solu...
SYS-CON Events announced today that the leading global SOA technology provider Web Age Solutions nam...
SOA in many ways reminds me of relational database technology. At it’s first inception, the concep...
IBM (NYSE: IBM) announced today that Merrill Lynch will use its new iDataPlex servers, a new class o...
IBM got a jump on what people fear may be a nasty earnings season and pre-announced its Q3 results W...
On tap are the high-end Dorado 700 and mid-range Dorado 4000 and Libra 4000, all terribly real-time ...
IBM said Monday that it's going full bore at cloud computing and launching a company-wide initiative...
Since its emergence, Web Service technology has gone a long way towards perfecting itself and findin...
Join Scott Guthrie as he discusses Microsoft’s commitment to web standards development, Rich Inter...
Reminding people of how its backing was the making of Linux, IBM, to no one's surprise, has thrown i...
Service oriented architecture (SOA) could revolutionize the way we think about IT. Why is that possi...
Virtualization has become a critical part of Enterprise IT strategy. Why and how has it become one o...
Watching VMware stock and its market cap spike since it IPO'd must have had Red Hat positively pea g...
IBM announced that Vantage Deluxe World Travel has increased sales and improved business operations ...
The AJAX for IBM WebSphere Platform Early Program is an optionally installable product extension for...
Unify announced the expansion of its Composer for Lotus Notes solution through a partnership with CA...
IBM claims to have created new species of custom-built, industry-standard, Linux-based rack server f...
A standard from OASIS called Web Services for Remote Portlets (WSRP) is used so portlets can be deco...
Genuitec announced the availability of MyEclipse 6.5 Blue Edition; a next-generation ALM and open so...
ZSL announced its Enterprise 2.0 Computing Framework built on IBM WebSphere sMash and Service Orient...
SYS-CON's upcoming '3rd International Virtualization Conference & Expo' faculty includes such distin...
ADS BY GOOGLE