• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF-STRUTS-JSP

 
Prasanna Baskaran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic