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

JSF-STRUTS-JSP

Prasanna Baskaran
Greenhorn

Joined: Mar 27, 2006
Posts: 2
Can you please explain the advantages of going for Struts over JSPs and advantages of JSFs over STRUTS in simple terms.
kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197
Read a trail further down on this JSF forum entitled "not enamoured by JSF 1.1" Very interesting debate. It could either answer all your questions, or leave you as confused as I am about which framework to learn


Who dares, wins! (SAS motto)
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Servlets and JSPs is the basics. It's how everything was done where there wasn't any other way to do it.

However, before frameworks came around, everyone was doing the same thing in different ways: error handling, creating custom tags, form handling, input validation, memento pattern, front controller pattern, connection pooling, and so on and so on and so on.

Anyways, Struts came along, with other frameworks, and pulled all of those things together. Struts is a great MVC framework, that builds on top of Servlets and JSPs, but does all those things every application needs to do, and it does it well, and it's all implemented by people much smarter than you and me.

But, Struts isn't perfect. And from my experience, creating a GUI, drag and drop tooling around Struts is difficult for tool developers. Plus, Struts is open source, so, the people that support and maintain it have other things to do, such as, making a living.

So, Sun came around and provided the JSF framework. I'm new to JSF, so please correct me. It does many of the things Struts does, but it's backed by Sun, who know Java pretty good, and it makes drag and drop GUI development pretty easy. Plus, it's easier to port to different technologies. For example, I did a tutorial on making a struts portlet - it was painful. The same tutorial on creating a JSF portlet was extremely simple.

From the outside looking in, it might seem like JSF is the future. I know IBM WebSphere has said "look, we supported a Struts portlet, but from now on, lets just concentrate on JSF stuff. That's where we're going to put our focus." It was that attitude from IBM that made me really thinf "sheesh, I better get familiar with this JSF stuff in a hurry."

That's the way it looks to me right now.

-Cameron McKenzie
[ January 21, 2007: Message edited by: Cameron W. McKenzie ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

Originally posted by Cameron W. McKenzie:
From the outside looking in, it might seem like JSF is the future.


Or not.

Some may think so, many others think that shoving a square peg into a round hole using a Rube Goldberg contraption isn't the way to go.
[ January 20, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Originally posted by Bear Bibeault:


Or not.

Some may think so, many others think that shoving a square peg into a round hole using a Rube Goldberg contraption isn't the way to go.

[ January 20, 2007: Message edited by: Bear Bibeault ]


:thumb:

I think anyone considering JSF should read this:

http://icoloma.blogspot.com/2006/10/myfaces-emperor-has-no-clothes.html


GenRocket - A Test Data Generation Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF-STRUTS-JSP
 
Similar Threads
What are the advantages?
Spring Web Module vs Spring MVC Framework
Is JSF becoming popular?
Advantages of JSF over Struts
what are the advantages of struts