File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts and JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts and JSF" Watch "Struts and JSF" New topic

Struts and JSF

Albert Nunes

Joined: Mar 22, 2004
Posts: 11
Are Struts and JSF independend technologies ? If no, what is the relation between them ? Do I have to study struts before studing JSF ?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32811

If you are just starting out, I would recommend learning JSF by itself. (or struts by itself.) While the two can be used together, that's best for Struts shops that have a lot invested in their way of doing things and want to switch over slowly.

Both are web frameworks, but the flow is somewhat different.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Indeed they are independent. While Struts is one of the oldest and most used frameworks born directly from the developers, JSF is supported with a JCP created spec. The problem I see with JSF is that there are not too many implementations of the framework (I may be wrong but I think in fact there are only two)


blog -
Matt Raible
Ranch Hand

Joined: Jan 11, 2001
Posts: 114
Here's a post from Craig McClanahan that might help clear things up:

Matt<br /> <br />Author: <a href="" target="_blank" rel="nofollow">Spring Live</a> and <a href="" target="_blank" rel="nofollow">Pro JSP</a><br />Weblogs: <a href="" target="_blank" rel="nofollow">Raible Designs</a> <a href="" target="_blank" rel="nofollow">Spring Live Blog</a>
I agree. Here's the link:
subject: Struts and JSF
It's not a secret anymore!