aspose file tools*
The moose likes JSF and the fly likes What is the difference between JSP and JSF ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "What is the difference between JSP and JSF ?" Watch "What is the difference between JSP and JSF ?" New topic
Author

What is the difference between JSP and JSF ?

Venki Ananth
Ranch Hand

Joined: Dec 17, 2008
Posts: 32
Hello all,

Can anyone explain what is major difference between JSP and JSF? why we need JSF?

Any sample application please!


Venki
http://saalram.com
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
JSP is a view technology which allows interaction with Java in form of taglibs and EL.
JSF is a component based MVC framework which provides taglibs for use in JSP.

When you want to use JSF, I highly recommend Facelets as view technology over JSP. Facelets is going to be the default supported view technology as per the upcoming JSF 2.0.
Prathamesh Gaddam
Ranch Hand

Joined: Feb 18, 2008
Posts: 58
Bauke Scholtz wrote:
JSF is a component based MVC framework which provides taglibs for use in JSP.


Thank you, Bauke Scholtz. Your precise reply helped me to get an overview difference about JSF and FACELETS. However, I'm unable to get, JSF is a MVC framework. I'm assuming that its a frameworks only for view technology, is it right?

Please clarify accordingly, to differenciate between Faclets and JSF.

Thank you in advance!
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Facelets is also a view technology like JSP. It only offers more seamless interaction with JSF than what JSP offers.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: What is the difference between JSP and JSF ?