This week's book giveaways are in the Cloud/Virtualization and Go forums.
We're giving away four copies each of Cloud Native Transformation: Practical Patterns for Innovation and The Go Workshop and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native Transformation: Practical Patterns for InnovationE this week in the Cloud/Virtualization forum
or The Go Workshop in the Go forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

JSF-STRUTS-JSP

 
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.
 
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
 
author and cow tipper
Posts: 5000
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 ]
 
Marshal
Posts: 67334
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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 ]
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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
 
The problems of the world fade way as you eat a piece of pie. This tiny ad has never known problems:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!