• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is the difference between JSP and JSF ?

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

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

Any sample application please!

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic