Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tough Decision - Struts or Java Server Faces

 
Surendra Kashyap
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rancher,

So far, during web development, I have been using Servlets/JSP directory. However, as the complexity increases, using framework is very much required. I know Struts and Titles have been very popular. I have tried creating few web sites and it is very powerful. However, Java Server Faces (JSF) is picking up speed as IDEs are trying to provide RAD tools.

I am having tough time deciding between JSF and Struts. Struts creator has also endorsed JFC. MyFaces implementation of JSF is providing 'Tiles' integration as well. From long-terms perspective, my gut instincts says, I should go with JSF framework for new development?

I could take Hybrid approach but then it will too much become confusing.

Do you all have any opinion or recommendation on these framework?

Regards,

Surendra
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this thread to the more appropriate Struts forum.

Yes, I know it is between JSF and Struts, but you will get good opinions there.

Mark
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would not go with a hybrid approach. Craig McClanahan discourages starting a project with both (see his latest tech talk at theserverside.com). The hybrid is good for transitioning from one framework to the other but having to know/learn both frameworks and their quirks are not worth it. You might know them both but think of the poor guys who have to maintain your code for years to come.

I really like both Struts and JSF but if I were ever given the full authority to pick one or the other I would choose JSF. The arguments for using JSF over Struts should only increase with time, especially with it becoming a part of JavaEE 5.
 
Marco Vanoli
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know Struts,
it is difficult to know also JSF??

Can you estimate a a time to learn JSF?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic